結果
問題 |
No.1736 Princess vs. Dragoness
|
ユーザー |
|
提出日時 | 2022-02-07 16:04:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 446 ms / 2,000 ms |
コード長 | 235 bytes |
コンパイル時間 | 136 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-13 01:00:14 |
合計ジャッジ時間 | 5,513 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#yuki1736 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: h[h.index(max(h))]=0 else: h[h.index(max(h))]-=x if sum(h)<=y*b: print('Yes') else: print('No')