結果
| 問題 |
No.1736 Princess vs. Dragoness
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 22:00:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 253 ms / 2,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2025-07-04 14:04:10 |
| 合計ジャッジ時間 | 3,457 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
n,a,b,x,y = map(int,input().split())
h = list(map(int,input().split()))
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] = max(0, h[i] - x)
if sum(h) <= y*b:
print("Yes")
else:
print("No")