Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166733 | 刘睿甫 | 整数幂 | C++ | 解答错误 | 0 | 6 MS | 240 KB | 339 | 2024-08-19 15:19:10 |
#include <iostream> using namespace std; bool is_zms(int n){ for (int i = 1;i<=n;i++){ if (n%2==0) return 1; else n/=2; } return 0; } int main(){ int t,i,n; cin>>t; for (int i = 0;i<t;i++){ cin>>n; if (is_zms(n)) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }