Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166264 | 刘睿甫 | 整数幂 | C++ | 解答错误 | 0 | 6 MS | 248 KB | 346 | 2024-08-19 10:21:16 |
#include <bits/stdc++.h> using namespace std; bool is_zms(int n){ for (int i = 1;i<=n;i++){ if (n%2==0) return 1; else n>>1; } 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; }