結果
問題 |
No.2056 非力なレッド
|
ユーザー |
|
提出日時 | 2022-09-19 15:50:54 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 337 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 102,272 KB |
最終ジャッジ日時 | 2024-12-22 02:30:04 |
合計ジャッジ時間 | 5,845 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 10 |
ソースコード
n,m,x = map(int,input().split()) a = list(map(int,input().split())) now = 0 left = m for i in range(n)[::-1]: ai = a[i] ai //= pow(2, now) while left >= i+1 and ai >= x: left -= i+1 now += 1 ai //= 2 if ai >= x: print('No') exit() print('Yes')