結果
| 問題 |
No.1736 Princess vs. Dragoness
|
| コンテスト | |
| ユーザー |
sanao10000
|
| 提出日時 | 2021-11-12 22:50:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 115 ms / 2,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 67,724 KB |
| 最終ジャッジ日時 | 2025-07-04 14:04:55 |
| 合計ジャッジ時間 | 3,402 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
n, a, b,x,y = map(int, input().split())
hs =list(map(int, input().split()))
for i in range(a):
maxi1=max(hs)
maxin=hs.index(maxi1)
hs[maxin]-=x
for b in range(b):
p=y
for i in range(len(hs)):
if(hs[i]<=0):continue
D=min(p,hs[i])
hs[i]-=D
p-=D
ll=len(list((filter(lambda x: x>0, hs))))
if ll==0:
print("Yes")
else:
print("No")
sanao10000