結果
問題 | No.1736 Princess vs. Dragoness |
ユーザー |
![]() |
提出日時 | 2021-11-12 21:34:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 70 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 82,380 KB |
実行使用メモリ | 66,820 KB |
最終ジャッジ日時 | 2024-11-25 17:18:31 |
合計ジャッジ時間 | 2,781 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
n,a,b,x,y=map(int,input().split())h=list(map(int,input().split()))h.sort(reverse=True)for i in range(a):if max(h)-x<0:h[h.index(max(h))]=0else :h[h.index(max(h))]-=xif sum(h)>y*b:print("No")else:print("Yes")