文章
79
粉丝
221
获赞
46
访问
198.5k
#include <iostream> using namespace std; int main() { unsigned int a; while (cin >> a) { string res = ""; while (a > 0) { char t = a % 2 + '0'; res = t + res; a /= 2; } cout << res << endl; } return 0; }
登录后发布评论
暂无评论,来抢沙发