#include<iostream>
#include<algorithm>
#include<stdlib.h>
#include<math.h>
using namespace std;
/*Input:
5
23
535
2624
56275
989835
*/
int main()
{
int i,x,T;
int a[1000];
cin>>T;
while(T--){
cin>>x;
i=0;
while(x!=0){
a[i++]=x&1;
x=x>>1;
}
i--;
while(i>=0){
cout<<a[i--];
}
cout<<endl;
}
}
BUPT OJ|128. 二进制数
最新推荐文章于 2024-07-24 14:05:37 发布