wojiaocbj

Untitled

Jun 6th, 2022
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.     long long x;
  4.     int i;
  5.     while(~scanf("%lld", &x)){
  6.         for(i = 63; i >= 0; i--){
  7.             printf("%d", ((x >> i) & 1));
  8.         }
  9.         putchar('\n');
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment