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