結果
| 問題 | No.2056 非力なレッド |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-26 21:31:28 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 81,220 KB |
| 実行使用メモリ | 112,896 KB |
| 最終ジャッジ日時 | 2026-09-16 00:56:18 |
| 合計ジャッジ時間 | 5,194 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 WA * 8 |
ソースコード
n,x,m = map(int,input().split())
A = list(map(int,input().split()))
ans = 0
now = 0
for i in range(n)[::-1]:
a = A[i]
c = 0
while a >= x:
a //= 2
c += 1
if c > now:
ans += i+1
now = max(now,c)
print("Yes" if ans <= m else "No")