文章
166
粉丝
68
获赞
858
访问
63.3k
#include <bits/stdc++.h> using namespace std; int main(){ long long x; while(cin>>x){ string ans; while(x!=0){ ans.push_back(x%2+'0'); x/=2; } reverse(ans.begin(),ans.end()); cout<<ans<<endl; } }
登录后发布评论
暂无评论,来抢沙发