結果
| 問題 | No.1454 ツブ消ししとるなEasy |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-05-05 20:55:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 92,672 KB |
| 最終ジャッジ日時 | 2026-04-04 05:32:13 |
| 合計ジャッジ時間 | 1,421 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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