結果
| 問題 | No.1736 Princess vs. Dragoness |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-07 16:04:03 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 350 ms / 2,000 ms |
| + 250µs | |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2026-10-15 03:29:46 |
| 合計ジャッジ時間 | 5,268 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
#yuki1736
n,a,b,x,y=map(int,input().split())
h=list(map(int,input().split()))
h.sort(reverse=True)
for i in range(a):
if max(h)<x:
h[h.index(max(h))]=0
else:
h[h.index(max(h))]-=x
if sum(h)<=y*b:
print('Yes')
else:
print('No')