結果
| 問題 | No.1454 ツブ消ししとるなEasy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-25 15:15:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 2,000 ms |
| + 100µs | |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 24,556 KB |
| 最終ジャッジ日時 | 2026-07-29 17:35:14 |
| 合計ジャッジ時間 | 3,785 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#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)