結果
問題 | No.1736 Princess vs. Dragoness |
ユーザー | Goltermann大和 |
提出日時 | 2021-11-12 22:30:42 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 681 bytes |
コンパイル時間 | 405 ms |
コンパイル使用メモリ | 10,948 KB |
実行使用メモリ | 8,620 KB |
最終ジャッジ日時 | 2023-08-17 02:33:24 |
合計ジャッジ時間 | 9,408 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,932 KB |
testcase_01 | AC | 17 ms
7,784 KB |
testcase_02 | AC | 16 ms
7,760 KB |
testcase_03 | WA | - |
testcase_04 | AC | 86 ms
8,256 KB |
testcase_05 | AC | 26 ms
7,824 KB |
testcase_06 | AC | 334 ms
8,404 KB |
testcase_07 | AC | 726 ms
8,620 KB |
testcase_08 | AC | 268 ms
8,404 KB |
testcase_09 | AC | 444 ms
8,448 KB |
testcase_10 | AC | 17 ms
7,916 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 374 ms
8,544 KB |
testcase_14 | WA | - |
testcase_15 | AC | 82 ms
8,348 KB |
testcase_16 | AC | 135 ms
7,828 KB |
testcase_17 | WA | - |
testcase_18 | AC | 427 ms
8,532 KB |
testcase_19 | AC | 452 ms
8,348 KB |
testcase_20 | AC | 77 ms
7,824 KB |
testcase_21 | WA | - |
testcase_22 | AC | 577 ms
8,364 KB |
testcase_23 | WA | - |
testcase_24 | AC | 42 ms
7,920 KB |
testcase_25 | AC | 58 ms
8,360 KB |
testcase_26 | WA | - |
testcase_27 | AC | 101 ms
8,448 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | AC | 96 ms
8,240 KB |
testcase_32 | WA | - |
testcase_33 | AC | 16 ms
7,788 KB |
testcase_34 | WA | - |
testcase_35 | AC | 16 ms
7,752 KB |
ソースコード
n,a,b,x,y = map(int,input().split()) h = list(map(int,input().split())) # n:敵の数 a:撃てる回数 b:撃てる回数 x:a与ダメージ y:b与ダメージ def magic_a(x,h): h[h.index(max(h))] -= x return h def magic_b(y,h): for enemy_num in range(n): if h[enemy_num]<=y: y -= h[enemy_num] h[enemy_num]=0 else: h[enemy_num]-=y return h while True: if a==0: break h = magic_a(x,h) a -= 1 while True: if b==0: break h = magic_b(y,h) b -= 1 judge = True for monster in h: if monster>0: judge = False if judge: print("Yes") else: print("No")