結果
| 問題 |
No.1454 ツブ消ししとるなEasy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-29 00:20:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 128 ms / 2,000 ms |
| コード長 | 311 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 87,168 KB |
| 最終ジャッジ日時 | 2024-06-25 17:23:41 |
| 合計ジャッジ時間 | 1,908 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
N, M, X, Y = map(int, input().rstrip().split())
a = list(map(int, input().rstrip().split()))
a = [n for n in a if n > Y]
if len(a) <= M:
print(sum(a))
else:
a.sort()
while True:
n = a.pop(0)
if n >= X:
print('Handicapped')
exit()
if len(a) <= M:
print(sum(a))
exit()