Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166364 Mino_XIE-谢文凯B班 整数幂 C++ 解答错误 0 5 MS 244 KB 337 2024-08-19 13:56:43

Tests(0/4):


#include<bits/stdc++.h> using namespace std; #define int long long signed main(){ int T; cin >> T; while(T--){ int k; cin >> k; int cnt = 1,tot; while(++tot){ cnt *= 2; if (cnt == k){ cout << "Yes"; break; } else if (cnt > k){ cout << "No"; break; } } } return 0; }


测评信息: