結果
| 問題 | No.1736 Princess vs. Dragoness |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 21:34:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| 記録 | |
| コンパイル時間 | 210 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 62,848 KB |
| 最終ジャッジ日時 | 2026-05-20 02:49:30 |
| 合計ジャッジ時間 | 3,593 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 8 |
ソースコード
n,a,b,x,y = map(int,input().split())
h = list(map(int,input().split()))
h.sort(reverse=True)
i = 0
while a and i < n:
if h[i] >= x:
h[i] -= x
a -= 1
else:
i += 1
for j in range(a):
i = h.index(max(h))
h[i] -= x
if sum(h) <= y*b:
print("Yes")
else:
print("No")