Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166889 | Microsoft | 整数幂 | C++ | 通过 | 100 | 1 MS | 244 KB | 212 | 2024-08-19 15:30:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,t; scanf("%d",&t); while(t--) { scanf("%d",&n); if((n&(n-1))==0) printf("Yes\n"); else printf("No\n"); } return 0; }