結果
| 問題 | No.3787 17 years old |
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2026-11-10 10:33:27 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 26 ms / 2,000 ms |
| + 30µs | |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 1,169 ms |
| コンパイル使用メモリ | 187,672 KB |
| 実行使用メモリ | 9,820 KB |
| 最終ジャッジ日時 | 2026-11-10 10:33:30 |
| 合計ジャッジ時間 | 3,066 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
using ll = long long;
int main(){
int t;
cin >> t;
rep(i, 0, t) {
int n;
cin >> n;
string ans = "No";
int k = 0;
while(n % 2 == 0) {
k++;
n /= 2;
}
if(n == 1 && k < 5) ans = "Yes";
cout << ans << endl;
}
}
forest3