結果

問題 No.2056 非力なレッド
ユーザー KudeKude
提出日時 2022-08-26 21:23:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 104,252 KB
最終ジャッジ日時 2024-04-21 23:18:16
合計ジャッジ時間 5,344 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
51,456 KB
testcase_01 AC 44 ms
51,456 KB
testcase_02 AC 43 ms
51,456 KB
testcase_03 AC 43 ms
51,840 KB
testcase_04 AC 43 ms
51,968 KB
testcase_05 AC 44 ms
51,584 KB
testcase_06 AC 44 ms
51,840 KB
testcase_07 AC 43 ms
51,840 KB
testcase_08 AC 43 ms
51,584 KB
testcase_09 AC 43 ms
52,096 KB
testcase_10 AC 43 ms
51,840 KB
testcase_11 AC 46 ms
51,456 KB
testcase_12 AC 44 ms
51,584 KB
testcase_13 AC 90 ms
83,584 KB
testcase_14 AC 95 ms
85,504 KB
testcase_15 AC 84 ms
83,456 KB
testcase_16 AC 59 ms
62,848 KB
testcase_17 AC 84 ms
78,720 KB
testcase_18 AC 64 ms
63,360 KB
testcase_19 AC 63 ms
63,488 KB
testcase_20 AC 92 ms
89,088 KB
testcase_21 AC 70 ms
68,608 KB
testcase_22 AC 91 ms
83,584 KB
testcase_23 AC 94 ms
81,152 KB
testcase_24 AC 70 ms
70,144 KB
testcase_25 AC 96 ms
89,344 KB
testcase_26 AC 107 ms
93,532 KB
testcase_27 AC 96 ms
89,216 KB
testcase_28 AC 112 ms
103,552 KB
testcase_29 AC 119 ms
103,552 KB
testcase_30 AC 125 ms
103,424 KB
testcase_31 AC 115 ms
104,252 KB
testcase_32 AC 123 ms
103,692 KB
testcase_33 AC 122 ms
103,552 KB
testcase_34 AC 126 ms
103,936 KB
testcase_35 AC 114 ms
103,428 KB
testcase_36 AC 115 ms
103,552 KB
testcase_37 AC 137 ms
103,552 KB
testcase_38 AC 43 ms
51,584 KB
testcase_39 AC 44 ms
51,712 KB
testcase_40 AC 43 ms
51,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, m = map(int, input().split())
d = [0] * n
for i, a in enumerate(map(int, input().split())):
    cnt = 0
    while x <= a:
        a //= 2
        cnt += 1
    d[i] = cnt
for i in range(n - 1)[::-1]:
    d[i] = max(d[i], d[i+1])
print('Yes' if sum(d) <= m else 'No')
0