結果
| 問題 | No.1736 Princess vs. Dragoness |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-11-12 21:38:08 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 59 ms / 2,000 ms |
| + 812µs | |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 64,792 KB |
| 実行使用メモリ | 59,476 KB |
| 最終ジャッジ日時 | 2026-10-15 03:15:04 |
| 合計ジャッジ時間 | 3,888 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
from heapq import heapify,heappop,heappush
N,A,B,X,Y=map(int,input().split())
H=list(map(int,input().split()))
H=[-hp for hp in H]
heapify(H)
for _ in range(A):
if not H:
continue
hp=-heappop(H)
if hp>=X:
heappush(H,-(hp-X))
print("Yes" if -sum(H)<=B*Y else "No")
Kazun