結果
問題 | No.1736 Princess vs. Dragoness |
ユーザー |
![]() |
提出日時 | 2021-11-18 18:32:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 107 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 514 ms |
コンパイル使用メモリ | 81,408 KB |
実行使用メモリ | 76,288 KB |
最終ジャッジ日時 | 2024-12-26 16:58:48 |
合計ジャッジ時間 | 4,329 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
n,a,b,x,y = map(int,input().split())h = list(map(int,input().split()))from heapq import heappush, heappophq = []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')