fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. unsigned long long no;
  5. scanf ("%llu", &no);
  6. if ( no && !(no & (no - 1))) {
  7. printf("yes\n");
  8. } else {
  9. printf("no\n");
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4180KB
stdin
1099511627776
stdout
yes