結果
| 問題 | No.1736 Princess vs. Dragoness |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-03 20:31:55 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 26 ms / 2,000 ms |
| + 521µs | |
| コード長 | 480 bytes |
| 記録 | |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 14,592 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2026-10-15 03:29:20 |
| 合計ジャッジ時間 | 2,797 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
N,A,B,X,Y = list(map(int,input().split()))
H = list(map(int,input().split()))
H.sort(reverse = True)
count = 0
i = 0
while count < A and i < N:
q = H[i] // X
if q == 0:
count += 1
H[i] = 0
i += 1
else:
q1 = min(A - count,q)
count += q1
H[i] -= X * q1
i += 1
if count < A:
H.sort(reverse = True)
for i in range(min(A-count,N)):
H[i] = 0
if sum(H) <= Y * B:
print('Yes')
else:
print('No')