結果

問題 No.2056 非力なレッド
ユーザー tktk_snsntktk_snsn
提出日時 2022-08-26 21:42:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 395 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 33,396 KB
最終ジャッジ日時 2024-04-21 23:43:31
合計ジャッジ時間 5,063 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 34 ms
10,752 KB
testcase_05 AC 31 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 31 ms
10,624 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 AC 30 ms
10,752 KB
testcase_11 AC 30 ms
10,752 KB
testcase_12 AC 31 ms
10,752 KB
testcase_13 AC 121 ms
24,896 KB
testcase_14 AC 74 ms
24,524 KB
testcase_15 AC 118 ms
24,524 KB
testcase_16 AC 38 ms
12,032 KB
testcase_17 AC 61 ms
20,232 KB
testcase_18 AC 34 ms
11,264 KB
testcase_19 AC 45 ms
12,288 KB
testcase_20 AC 137 ms
28,436 KB
testcase_21 AC 55 ms
13,928 KB
testcase_22 AC 76 ms
24,488 KB
testcase_23 AC 66 ms
22,316 KB
testcase_24 AC 71 ms
17,036 KB
testcase_25 AC 141 ms
28,024 KB
testcase_26 AC 148 ms
30,136 KB
testcase_27 AC 143 ms
28,928 KB
testcase_28 AC 170 ms
33,256 KB
testcase_29 AC 171 ms
33,268 KB
testcase_30 AC 198 ms
33,392 KB
testcase_31 AC 174 ms
33,268 KB
testcase_32 AC 173 ms
33,264 KB
testcase_33 AC 199 ms
33,388 KB
testcase_34 AC 102 ms
33,384 KB
testcase_35 AC 170 ms
33,396 KB
testcase_36 AC 102 ms
33,392 KB
testcase_37 AC 101 ms
33,256 KB
testcase_38 AC 31 ms
10,624 KB
testcase_39 AC 31 ms
10,752 KB
testcase_40 AC 30 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N, X, M = map(int, input().split())
    A = list(map(int, input().split()))

    two = 0
    while A:
        for _ in range(two):
            A[-1] //= 2

        while A[-1] >= X:
            two += 1
            M -= len(A)
            A[-1] //= 2

        if M < 0:
            return False

        A.pop()
    return True


if main():
    print("Yes")
else:
    print("No")
0