結果
問題 |
No.1736 Princess vs. Dragoness
|
ユーザー |
|
提出日時 | 2021-11-12 21:31:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 352 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-11-25 12:13:49 |
合計ジャッジ時間 | 2,039 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 8 |
ソースコード
n,a,b,x,y = map(int,input().split()) h = list(map(int,input().split())) h.sort(reverse=True) i = 0 while a and i < n: if h[i] >= x: h[i] -= x a -= 1 else: i += 1 i = 0 while a and i < n: if h[i] <= 0: i += 1 else: h[i] -= x a -= 1 if sum(h) <= y*b: print("Yes") else: print("No")