結果
問題 |
No.3276 Make Smaller Popcount
|
ユーザー |
|
提出日時 | 2025-09-19 21:32:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 181 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 82,676 KB |
実行使用メモリ | 78,012 KB |
最終ジャッジ日時 | 2025-09-19 21:32:32 |
合計ジャッジ時間 | 22,902 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 1 WA * 27 |
ソースコード
for _ in range(int(input())): a=bin(int(input()))[2:] for i in reversed(range(len(a)-1)): if a[i]==a[i+1]=='1': print(pow(2,i)) break else: print(-1)