結果
問題 |
No.1454 ツブ消ししとるなEasy
|
ユーザー |
![]() |
提出日時 | 2021-04-27 13:46:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,864 KB |
最終ジャッジ日時 | 2024-07-06 07:40:34 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 5 WA * 11 |
ソースコード
N, M, X, Y = map(int, input().split()) A = list(map(int, input().split())) x = list(filter(lambda x:x>Y, A)) x.sort() si = min(len(x), M) # m個取得 _x, x = x[:-si], x[-si:] if _x != [] and max(_x) >= X: print("Handicapped") exit() if x == []: print(sum(x)) else: print(0)