結果

問題 No.1454 ツブ消ししとるなEasy
ユーザー hir355hir355
提出日時 2021-03-31 21:09:14
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 235 bytes
コンパイル時間 746 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 87,552 KB
最終ジャッジ日時 2024-05-09 02:45:45
合計ジャッジ時間 2,417 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,712 KB
testcase_01 AC 40 ms
51,456 KB
testcase_02 AC 40 ms
51,456 KB
testcase_03 AC 41 ms
51,968 KB
testcase_04 RE -
testcase_05 AC 40 ms
52,224 KB
testcase_06 AC 41 ms
51,840 KB
testcase_07 AC 64 ms
76,672 KB
testcase_08 AC 68 ms
77,696 KB
testcase_09 AC 68 ms
77,952 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 41 ms
51,712 KB
testcase_13 AC 50 ms
51,840 KB
testcase_14 AC 41 ms
51,584 KB
testcase_15 AC 41 ms
52,352 KB
testcase_16 AC 41 ms
52,096 KB
testcase_17 AC 40 ms
51,712 KB
testcase_18 AC 40 ms
51,840 KB
testcase_19 AC 40 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

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