結果

問題 No.2056 非力なレッド
ユーザー ntudantuda
提出日時 2022-10-01 19:01:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 342 bytes
コンパイル時間 751 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 105,904 KB
最終ジャッジ日時 2023-08-25 17:00:14
合計ジャッジ時間 6,340 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,364 KB
testcase_01 AC 70 ms
71,372 KB
testcase_02 AC 70 ms
71,328 KB
testcase_03 AC 68 ms
71,636 KB
testcase_04 AC 69 ms
71,460 KB
testcase_05 AC 69 ms
71,468 KB
testcase_06 AC 69 ms
71,440 KB
testcase_07 AC 69 ms
71,252 KB
testcase_08 AC 70 ms
71,424 KB
testcase_09 AC 69 ms
71,392 KB
testcase_10 AC 70 ms
71,364 KB
testcase_11 AC 68 ms
71,564 KB
testcase_12 AC 69 ms
71,444 KB
testcase_13 AC 107 ms
97,492 KB
testcase_14 AC 113 ms
97,468 KB
testcase_15 AC 105 ms
97,472 KB
testcase_16 AC 78 ms
76,796 KB
testcase_17 AC 99 ms
90,264 KB
testcase_18 AC 80 ms
76,572 KB
testcase_19 AC 79 ms
77,140 KB
testcase_20 AC 115 ms
103,328 KB
testcase_21 AC 88 ms
79,848 KB
testcase_22 AC 109 ms
97,640 KB
testcase_23 AC 107 ms
94,388 KB
testcase_24 AC 89 ms
84,292 KB
testcase_25 AC 115 ms
103,412 KB
testcase_26 AC 121 ms
105,904 KB
testcase_27 AC 116 ms
103,212 KB
testcase_28 AC 129 ms
101,712 KB
testcase_29 AC 132 ms
101,980 KB
testcase_30 AC 132 ms
101,832 KB
testcase_31 AC 128 ms
101,840 KB
testcase_32 AC 129 ms
101,912 KB
testcase_33 AC 132 ms
101,680 KB
testcase_34 AC 134 ms
101,912 KB
testcase_35 AC 125 ms
101,992 KB
testcase_36 AC 126 ms
101,840 KB
testcase_37 AC 135 ms
102,056 KB
testcase_38 AC 69 ms
71,536 KB
testcase_39 AC 70 ms
71,344 KB
testcase_40 AC 70 ms
71,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X,M = map(int, input().split())
A = list(map(int, input().split()))
B = [0] * N
for i,a in enumerate(A):
    j = 0
    while a >= X:
        a //= 2
        j += 1
    B[i] = j
ans = 0
t = 0
for i in reversed(range(N)):
    if B[i] > t:
        ans += (i+1) * (B[i] - t)
        t = B[i]
if ans <= M:
    print("Yes")
else:
    print("No")
0