竞赛讨论区 > 牛客练习赛35-A题
头像
sorrow8
编辑于 2019-01-04 18:35
+ 关注

牛客练习赛35-A题

#include <stdio.h>
#include <math.h>
#include <string.h>
int main()
{
  unsigned long long T, n, i;
  scanf("%lld", &T);
  while(T--){  scanf("%lld", &n);
      if(n < 4){
          printf("NO\n");  continue;
      }
    n &= n - 1;  n &= n - 1;  if(n){  printf("NO\n");   }else{  printf("YES\n");  }
  }
}
为什么这个代码不对?

全部评论

(0) 回帖
加载中...
话题 回帖

本文相关内容

等你来战

查看全部

热门推荐