結果
| 問題 |
No.2056 非力なレッド
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-08-26 21:58:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 103,680 KB |
| 最終ジャッジ日時 | 2024-10-13 22:34:25 |
| 合計ジャッジ時間 | 4,685 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 10 |
ソースコード
N,M,X = map(int,input().split())
A = list(map(int,input().split()))
cnt = 0
for i in reversed(range(N)):
a = A[i]
i+=1
while a>>cnt >= X and M>=0:
cnt+=1
M-=i
if M<0:
print('No')
exit()
print('Yes')
H20