結果
| 問題 | No.1736 Princess vs. Dragoness |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 22:43:22 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 82,136 KB |
| 実行使用メモリ | 69,784 KB |
| 最終ジャッジ日時 | 2026-09-30 00:43:23 |
| 合計ジャッジ時間 | 3,244 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 34 |
ソースコード
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')