結果

問題 No.1454 ツブ消ししとるなEasy
ユーザー hir355
提出日時 2021-03-31 21:09:14
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 235 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 82,520 KB
実行使用メモリ 87,600 KB
最終ジャッジ日時 2024-12-15 11:28:16
合計ジャッジ時間 2,141 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m, x, y = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
if a[m] >= x:
    print('Handicapped')
else:
    ans = 0
    for i in range(m):
        if a[i] > y:
            ans += a[i]
    print(ans)
0