結果

問題 No.2056 非力なレッド
ユーザー tktk_snsntktk_snsn
提出日時 2022-08-26 21:40:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 723 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 33,396 KB
最終ジャッジ日時 2024-04-21 23:40:55
合計ジャッジ時間 5,704 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,624 KB
testcase_01 AC 33 ms
10,624 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 31 ms
10,752 KB
testcase_04 AC 31 ms
10,624 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 32 ms
10,624 KB
testcase_07 AC 32 ms
10,624 KB
testcase_08 AC 31 ms
10,624 KB
testcase_09 AC 31 ms
10,624 KB
testcase_10 AC 31 ms
10,624 KB
testcase_11 AC 32 ms
10,752 KB
testcase_12 AC 31 ms
10,624 KB
testcase_13 AC 121 ms
24,764 KB
testcase_14 AC 78 ms
24,392 KB
testcase_15 AC 121 ms
24,400 KB
testcase_16 AC 41 ms
11,904 KB
testcase_17 AC 63 ms
20,100 KB
testcase_18 AC 35 ms
11,136 KB
testcase_19 AC 45 ms
12,160 KB
testcase_20 AC 140 ms
28,176 KB
testcase_21 AC 57 ms
13,892 KB
testcase_22 AC 81 ms
24,372 KB
testcase_23 AC 68 ms
22,320 KB
testcase_24 AC 74 ms
16,780 KB
testcase_25 AC 143 ms
28,024 KB
testcase_26 AC 152 ms
30,012 KB
testcase_27 AC 147 ms
28,804 KB
testcase_28 AC 176 ms
33,132 KB
testcase_29 AC 173 ms
33,136 KB
testcase_30 AC 200 ms
33,268 KB
testcase_31 AC 173 ms
33,396 KB
testcase_32 AC 177 ms
33,268 KB
testcase_33 AC 198 ms
33,272 KB
testcase_34 AC 105 ms
33,256 KB
testcase_35 AC 174 ms
33,264 KB
testcase_36 AC 104 ms
33,264 KB
testcase_37 AC 103 ms
33,264 KB
testcase_38 AC 31 ms
10,624 KB
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

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