結果

問題 No.2056 非力なレッド
ユーザー minimumminimum
提出日時 2022-08-26 22:43:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 104,500 KB
最終ジャッジ日時 2023-08-04 02:16:39
合計ジャッジ時間 6,216 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,176 KB
testcase_01 AC 72 ms
71,436 KB
testcase_02 AC 72 ms
71,284 KB
testcase_03 AC 72 ms
71,212 KB
testcase_04 AC 74 ms
71,208 KB
testcase_05 AC 76 ms
71,136 KB
testcase_06 AC 74 ms
71,252 KB
testcase_07 AC 72 ms
71,472 KB
testcase_08 AC 74 ms
71,392 KB
testcase_09 AC 73 ms
71,332 KB
testcase_10 AC 73 ms
71,336 KB
testcase_11 AC 74 ms
71,172 KB
testcase_12 AC 74 ms
71,212 KB
testcase_13 AC 107 ms
96,000 KB
testcase_14 AC 106 ms
95,936 KB
testcase_15 AC 105 ms
95,788 KB
testcase_16 AC 82 ms
76,388 KB
testcase_17 AC 97 ms
89,468 KB
testcase_18 AC 79 ms
76,540 KB
testcase_19 AC 80 ms
76,656 KB
testcase_20 AC 110 ms
101,632 KB
testcase_21 AC 84 ms
79,264 KB
testcase_22 AC 104 ms
95,936 KB
testcase_23 AC 100 ms
93,124 KB
testcase_24 AC 89 ms
83,632 KB
testcase_25 AC 113 ms
102,012 KB
testcase_26 AC 117 ms
104,500 KB
testcase_27 AC 114 ms
101,800 KB
testcase_28 AC 129 ms
100,484 KB
testcase_29 AC 129 ms
100,388 KB
testcase_30 AC 129 ms
100,480 KB
testcase_31 AC 128 ms
100,384 KB
testcase_32 AC 128 ms
100,384 KB
testcase_33 AC 128 ms
100,628 KB
testcase_34 AC 127 ms
100,596 KB
testcase_35 AC 127 ms
100,588 KB
testcase_36 AC 126 ms
100,532 KB
testcase_37 AC 127 ms
100,520 KB
testcase_38 AC 73 ms
71,132 KB
testcase_39 AC 71 ms
71,476 KB
testcase_40 AC 73 ms
71,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

cnt = 0
N, X, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
mp = 0
for i in range(N - 1, -1, -1):
    A[i] = A[i] // (1 << cnt)
    while A[i] >= X:
        mp += i + 1
        A[i] = A[i] // 2
        cnt += 1

if mp <= M:
    print("Yes")
else:
    print("No")
0