結果
| 問題 |
No.1736 Princess vs. Dragoness
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 21:34:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 82,452 KB |
| 実行使用メモリ | 64,008 KB |
| 最終ジャッジ日時 | 2024-11-25 12:26:26 |
| 合計ジャッジ時間 | 2,846 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 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")