結果
| 問題 |
No.1454 ツブ消ししとるなEasy
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-05-05 20:55:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 73 ms / 2,000 ms |
| コード長 | 222 bytes |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 81,608 KB |
| 実行使用メモリ | 93,160 KB |
| 最終ジャッジ日時 | 2024-09-13 13:49:39 |
| 合計ジャッジ時間 | 2,232 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
n,m,x,y = map(int,input().split())
*a, = map(int,input().split())
p = [i for i in a if i >= x]
q = [i for i in a if y < i < x]
if len(p) > m:
print("Handicapped")
exit()
q.sort(reverse=1)
print(sum(p+q[:m-len(p)]))
convexineq