結果

問題 No.1736 Princess vs. Dragoness
ユーザー mrngmrng
提出日時 2021-11-18 18:26:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 78,104 KB
最終ジャッジ日時 2023-08-27 06:09:58
合計ジャッジ時間 5,844 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,436 KB
testcase_01 AC 73 ms
71,304 KB
testcase_02 AC 74 ms
71,168 KB
testcase_03 WA -
testcase_04 AC 91 ms
76,724 KB
testcase_05 AC 82 ms
75,776 KB
testcase_06 AC 102 ms
77,572 KB
testcase_07 AC 103 ms
77,556 KB
testcase_08 AC 98 ms
77,420 KB
testcase_09 AC 106 ms
77,880 KB
testcase_10 AC 79 ms
75,876 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 95 ms
76,644 KB
testcase_14 WA -
testcase_15 AC 81 ms
76,144 KB
testcase_16 AC 90 ms
76,540 KB
testcase_17 WA -
testcase_18 AC 89 ms
76,712 KB
testcase_19 AC 88 ms
76,620 KB
testcase_20 AC 78 ms
75,616 KB
testcase_21 WA -
testcase_22 AC 103 ms
77,936 KB
testcase_23 AC 89 ms
76,736 KB
testcase_24 AC 70 ms
71,360 KB
testcase_25 AC 100 ms
77,540 KB
testcase_26 AC 97 ms
77,996 KB
testcase_27 AC 92 ms
76,644 KB
testcase_28 AC 87 ms
76,752 KB
testcase_29 AC 87 ms
76,468 KB
testcase_30 AC 89 ms
76,468 KB
testcase_31 AC 100 ms
77,292 KB
testcase_32 AC 105 ms
77,956 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 70 ms
71,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,a,b,x,y = map(int,input().split())
h = list(map(int,input().split()))
from heapq import heappush, heappop
hq = []
for i in h:
	heappush(hq,-i)
for i in range(a):
	t = heappop(hq)
	t += x
	heappush(hq,t)
if -sum(hq)<=b*y: print('Yes')
else: print('No')
0