結果
| 問題 | No.1736 Princess vs. Dragoness |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-03 20:30:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 480 bytes |
| 記録 | |
| コンパイル時間 | 398 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-27 14:29:24 |
| 合計ジャッジ時間 | 5,666 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 34 |
ソースコード
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')