結果

問題 No.1736 Princess vs. Dragoness
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-11-12 23:57:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 76,724 KB
最終ジャッジ日時 2023-08-17 05:13:53
合計ジャッジ時間 5,340 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,144 KB
testcase_01 AC 71 ms
71,064 KB
testcase_02 AC 72 ms
71,264 KB
testcase_03 AC 89 ms
76,328 KB
testcase_04 AC 86 ms
76,144 KB
testcase_05 AC 77 ms
75,928 KB
testcase_06 AC 115 ms
76,512 KB
testcase_07 AC 129 ms
76,572 KB
testcase_08 AC 105 ms
76,572 KB
testcase_09 AC 109 ms
76,548 KB
testcase_10 AC 79 ms
76,368 KB
testcase_11 AC 144 ms
76,724 KB
testcase_12 AC 96 ms
76,500 KB
testcase_13 AC 116 ms
76,160 KB
testcase_14 AC 124 ms
76,392 KB
testcase_15 AC 87 ms
76,496 KB
testcase_16 AC 93 ms
76,464 KB
testcase_17 AC 115 ms
76,480 KB
testcase_18 AC 115 ms
76,692 KB
testcase_19 AC 118 ms
76,228 KB
testcase_20 AC 88 ms
76,300 KB
testcase_21 AC 92 ms
76,508 KB
testcase_22 AC 133 ms
76,572 KB
testcase_23 AC 92 ms
76,152 KB
testcase_24 AC 82 ms
76,332 KB
testcase_25 AC 82 ms
75,796 KB
testcase_26 AC 95 ms
76,364 KB
testcase_27 AC 87 ms
76,132 KB
testcase_28 AC 90 ms
76,552 KB
testcase_29 AC 88 ms
76,328 KB
testcase_30 AC 114 ms
76,472 KB
testcase_31 AC 90 ms
76,336 KB
testcase_32 AC 98 ms
76,456 KB
testcase_33 AC 72 ms
71,408 KB
testcase_34 AC 72 ms
71,204 KB
testcase_35 AC 71 ms
71,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, a, b, x, y = map(int, input().split())
h = list(map(int, input().split()))
for i in range(a): h[h.index(max(h))] -= x
for i in range(b):
	now = y
	for j in range(n):
		if h[j] < 0: continue
		tmp = min(h[j], now)
		now -= tmp
		h[j] -= tmp
print("Yes" if max(h) <= 0 else "No")
		
0