結果

問題 No.1454 ツブ消ししとるなEasy
ユーザー pluto77
提出日時 2021-06-25 15:15:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,848 KB
最終ジャッジ日時 2024-06-25 07:41:27
合計ジャッジ時間 1,787 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1454
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