文章
119
粉丝
68
获赞
92
访问
20.2k
#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; } }
登录后发布评论
暂无评论,来抢沙发