文章
84
粉丝
2
获赞
601
访问
38.6k
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
void change(int x) {
vector<int> q;
while (x) {
q.push_back(x % 2);
x /= 2;
}
reverse(q.begin(),q.end());
for (auto c : q) cout << c;
cout << endl;
}
int main() {
int x;
cin >> x;
change(x);
return 0;
}
登录后发布评论
暂无评论,来抢沙发