文章
34
粉丝
89
获赞
172
访问
43.5k
#include<bits/stdc++.h>
using namespace std;
string trans(int n){
string s = "";
for(int i = 0; i < 6;i++){
if(n > 0){
int w = n % 2;
s += w + '0';
n = n/2;
}
else s += "0";
}
reverse(s.begin(),s.end());
return s;
}
int main(){
for(int i = 0; i <= 63;i++){
cout << trans(i) << endl;
}
}
登录后发布评论
暂无评论,来抢沙发