标签:des style color io os ar java strong for
1 2 3
1 10 11
#include<stdio.h>
int main()
{
int n,a[100];
while(~scanf("%d",&n))
{
int i=0,j;
while(n)
{
a[i++]=n%2;
n/=2;
}
for(j=i-1;j>0;--j)
{
if(a[j]!=0)
break;
}
for(;j>=0;--j)
{
printf("%d",a[j]);
}
printf("\n");
}
return 0;
}标签:des style color io os ar java strong for
原文地址:http://blog.csdn.net/qq_18062811/article/details/39617483