結果
| 問題 |
No.1454 ツブ消ししとるなEasy
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2021-03-31 21:09:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 473 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 81,352 KB |
| 最終ジャッジ日時 | 2024-12-15 11:53:50 |
| 合計ジャッジ時間 | 1,999 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
n, m, x, y = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
if n > m and a[m] >= x:
print('Handicapped')
else:
ans = 0
for i in range(m):
if a[i] > y:
ans += a[i]
print(ans)
hir355