結果
| 問題 |
No.1736 Princess vs. Dragoness
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 22:43:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| コンパイル時間 | 439 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 65,792 KB |
| 最終ジャッジ日時 | 2024-11-25 20:24:11 |
| 合計ジャッジ時間 | 3,179 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 33 |
ソースコード
N,A,B,X,Y = map(int,input().split())
H = list(map(int,input().split()))
H.sort(reverse=True)
p = Y*B
for i in range(N):
print(p)
if A>0:
H[i]-=X
A-=1
if H[i]>0 and p>0:
d = min(p,H[i])
H[i]-=d
p-=d
print('Yes'if sum(H)<=0 else 'No')