結果

問題 No.2056 非力なレッド
ユーザー aaaaaaaaaa2230
提出日時 2022-08-26 21:31:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 102,528 KB
最終ジャッジ日時 2024-10-13 21:57:34
合計ジャッジ時間 4,443 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0