結果

問題 No.1736 Princess vs. Dragoness
ユーザー mrngmrng
提出日時 2021-11-18 18:32:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 78,036 KB
最終ジャッジ日時 2023-08-27 06:19:46
合計ジャッジ時間 5,311 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,408 KB
testcase_01 AC 78 ms
71,492 KB
testcase_02 AC 76 ms
71,400 KB
testcase_03 AC 85 ms
75,740 KB
testcase_04 AC 97 ms
76,784 KB
testcase_05 AC 85 ms
75,764 KB
testcase_06 AC 110 ms
77,360 KB
testcase_07 AC 112 ms
77,716 KB
testcase_08 AC 108 ms
77,544 KB
testcase_09 AC 116 ms
77,816 KB
testcase_10 AC 84 ms
75,788 KB
testcase_11 AC 119 ms
77,796 KB
testcase_12 AC 99 ms
76,724 KB
testcase_13 AC 102 ms
76,736 KB
testcase_14 AC 99 ms
76,728 KB
testcase_15 AC 86 ms
76,360 KB
testcase_16 AC 98 ms
76,540 KB
testcase_17 AC 107 ms
77,368 KB
testcase_18 AC 97 ms
76,700 KB
testcase_19 AC 96 ms
76,836 KB
testcase_20 AC 82 ms
75,656 KB
testcase_21 AC 111 ms
77,892 KB
testcase_22 AC 115 ms
77,744 KB
testcase_23 AC 96 ms
76,420 KB
testcase_24 AC 78 ms
71,380 KB
testcase_25 AC 113 ms
77,824 KB
testcase_26 AC 109 ms
78,036 KB
testcase_27 AC 102 ms
76,424 KB
testcase_28 AC 98 ms
76,752 KB
testcase_29 AC 95 ms
76,728 KB
testcase_30 AC 104 ms
76,812 KB
testcase_31 AC 114 ms
77,632 KB
testcase_32 AC 114 ms
78,036 KB
testcase_33 AC 77 ms
71,496 KB
testcase_34 AC 77 ms
71,320 KB
testcase_35 AC 77 ms
71,384 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 = min(0,t+x)
	heappush(hq,t)
if -sum(hq)<=b*y: print('Yes')
else: print('No')
0