結果

問題 No.2056 非力なレッド
ユーザー ThetaTheta
提出日時 2022-10-07 11:59:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 521 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 10,824 KB
実行使用メモリ 51,332 KB
最終ジャッジ日時 2023-09-02 12:56:02
合計ジャッジ時間 12,104 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
29,348 KB
testcase_01 AC 140 ms
29,348 KB
testcase_02 AC 141 ms
29,380 KB
testcase_03 AC 141 ms
29,380 KB
testcase_04 AC 137 ms
29,264 KB
testcase_05 AC 135 ms
29,364 KB
testcase_06 AC 130 ms
29,468 KB
testcase_07 AC 135 ms
29,364 KB
testcase_08 AC 135 ms
29,436 KB
testcase_09 AC 134 ms
29,324 KB
testcase_10 WA -
testcase_11 AC 136 ms
29,392 KB
testcase_12 AC 140 ms
29,504 KB
testcase_13 AC 234 ms
43,640 KB
testcase_14 AC 215 ms
43,368 KB
testcase_15 AC 231 ms
43,436 KB
testcase_16 AC 148 ms
31,016 KB
testcase_17 AC 194 ms
39,020 KB
testcase_18 AC 149 ms
29,864 KB
testcase_19 AC 159 ms
31,364 KB
testcase_20 AC 255 ms
45,836 KB
testcase_21 AC 168 ms
33,036 KB
testcase_22 AC 216 ms
43,076 KB
testcase_23 AC 263 ms
41,192 KB
testcase_24 AC 185 ms
35,564 KB
testcase_25 AC 262 ms
46,872 KB
testcase_26 AC 270 ms
47,952 KB
testcase_27 AC 257 ms
47,040 KB
testcase_28 AC 288 ms
51,332 KB
testcase_29 AC 290 ms
51,160 KB
testcase_30 AC 345 ms
51,120 KB
testcase_31 AC 293 ms
51,312 KB
testcase_32 AC 294 ms
51,120 KB
testcase_33 AC 358 ms
51,136 KB
testcase_34 AC 266 ms
51,124 KB
testcase_35 AC 302 ms
51,116 KB
testcase_36 AC 209 ms
51,104 KB
testcase_37 AC 269 ms
51,032 KB
testcase_38 AC 140 ms
29,364 KB
testcase_39 AC 140 ms
29,420 KB
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np


def main():
    N, X, mp = map(int, input().split())
    monsters = np.array(list(map(int, input().split())))
    for idx in reversed(range(N)):
        if monsters[idx] >= X:
            if mp > idx:
                mask = [True]*(idx + 1) + [False]*(N-idx-1)
                monsters[mask] = [hp // 2 for hp in monsters[mask]]
                mp -= (idx + 1)
            else:
                print("No")
                break
    else:
        print("Yes")


if __name__ == "__main__":
    main()
0