#include int main() { freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); int i,j; int result[20]; int num,count=0; scanf("%d",&num); for(i=0; num>0 ; i++) { result[i]=num%2; num=num/2; count++; } for(i=0;i<8-count;i++) printf("0"); for(j=count-1; j>=0; j--) printf("%d",result[j]); printf("\n"); return 0; }
ㄹ