結果

問題 No.1454 ツブ消ししとるなEasy
ユーザー hir355hir355
提出日時 2021-03-31 21:09:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 889 ms
コンパイル使用メモリ 86,756 KB
実行使用メモリ 90,088 KB
最終ジャッジ日時 2023-08-21 20:56:41
合計ジャッジ時間 3,328 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,120 KB
testcase_01 AC 72 ms
71,324 KB
testcase_02 AC 73 ms
70,848 KB
testcase_03 AC 71 ms
71,120 KB
testcase_04 AC 95 ms
90,088 KB
testcase_05 AC 71 ms
71,088 KB
testcase_06 AC 73 ms
71,248 KB
testcase_07 AC 91 ms
87,380 KB
testcase_08 AC 93 ms
87,976 KB
testcase_09 AC 91 ms
88,192 KB
testcase_10 AC 72 ms
70,864 KB
testcase_11 AC 72 ms
71,360 KB
testcase_12 AC 70 ms
71,160 KB
testcase_13 AC 72 ms
71,068 KB
testcase_14 AC 70 ms
71,276 KB
testcase_15 AC 71 ms
71,116 KB
testcase_16 AC 72 ms
71,092 KB
testcase_17 AC 70 ms
71,196 KB
testcase_18 AC 71 ms
70,972 KB
testcase_19 AC 71 ms
71,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0