結果
問題 | No.1454 ツブ消ししとるなEasy |
ユーザー |
![]() |
提出日時 | 2025-01-08 08:58:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 2,587 ms |
コンパイル使用メモリ | 82,160 KB |
実行使用メモリ | 80,896 KB |
最終ジャッジ日時 | 2025-01-08 08:58:32 |
合計ジャッジ時間 | 2,950 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
N, M, X, Y = map(int, input().split())A = sorted(list(map(int, input().split())), reverse=True)while len(A) > M and A[-1] < X:A.pop()while A and A[-1] <= Y:A.pop()print(sum(A)) if len(A) <= M else print("Handicapped")