結果
問題 | No.1736 Princess vs. Dragoness |
ユーザー |
|
提出日時 | 2021-11-12 21:39:46 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 75 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 82,076 KB |
実行使用メモリ | 76,412 KB |
最終ジャッジ日時 | 2024-11-25 17:32:35 |
合計ジャッジ時間 | 2,993 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
from heapq import heappop,heappushn,a,b,x,y = map(int,input().split())H = list(map(int,input().split()))h = []for i in H:heappush(h,-i)for i in range(a):if h:num = -heappop(h)num -= xif num <= 0:continueheappush(h,-num)count = -sum(h)if count <= b*y:print("Yes")else:print("No")