题解在此
2025-08-30 14:20:09
发布于:浙江
5阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
int cnt=0;
string s;
while (n){
s.push_back((n%2)+'0');
n/=2;
}
reverse(s.begin(),s.end());
cout<<s;
return 0;
}
这里空空如也
有帮助,赞一个