Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166330 C班-陈乐 整数幂 C++ 通过 100 5 MS 244 KB 241 2024-08-19 13:35:30

Tests(4/4):


#include <iostream> using namespace std; int main() { int t,n; cin >> t; for (int i = 1 ; i <= t ; i ++) { cin >> n; if (n > 0 && (n & -n) == n) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }


测评信息: