結果

問題 No.1454 ツブ消ししとるなEasy
ユーザー etale_K3etale_K3
提出日時 2021-10-22 23:42:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 227 bytes
コンパイル時間 727 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 21,548 KB
最終ジャッジ日時 2023-10-24 15:57:08
合計ジャッジ時間 2,669 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,032 KB
testcase_01 RE -
testcase_02 AC 27 ms
10,032 KB
testcase_03 AC 26 ms
10,032 KB
testcase_04 AC 80 ms
21,548 KB
testcase_05 AC 31 ms
10,036 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 60 ms
21,088 KB
testcase_09 AC 58 ms
21,088 KB
testcase_10 AC 27 ms
10,032 KB
testcase_11 AC 27 ms
10,032 KB
testcase_12 RE -
testcase_13 AC 26 ms
10,036 KB
testcase_14 RE -
testcase_15 AC 26 ms
10,056 KB
testcase_16 AC 27 ms
10,148 KB
testcase_17 AC 26 ms
10,032 KB
testcase_18 AC 27 ms
10,036 KB
testcase_19 AC 27 ms
10,036 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:
  res = 0
  for i in range(M):
    if A[i] > Y:
      res += A[i]

print(res)
0