Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
150240 | 凌愉晴 | 整数幂 | C++ | Accepted | 100 | 5 MS | 248 KB | 199 | 2024-06-01 16:44:56 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,n; cin>>x; for(int i=1;i<=x;i++){ cin>>n; if((n&(n-1))==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }