文章
2
粉丝
0
获赞
访问
210
#include<bits/stdc++.h> using namespace std; int main(){ long long int x; int index=0; while(cin>>x){ bitset<64> bs(x); string str=bs.to_string(); index=str.find_first_of('1');//从左往右 string str1=str.substr(index); cout<<str1<<endl; } }
登录后发布评论
暂无评论,来抢沙发