Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
165940 王容宇 整数幂 C++ 通过 100 4 MS 240 KB 337 2024-08-19 08:20:01

Tests(4/4):


#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; for(int i = 1; i<=t; i++) { int n; cin >> n; bool b = true; while(n!=1) { if(n%2) { b=false; } n/=2; } if(b) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }


测评信息: