結果
| 問題 |
No.1454 ツブ消ししとるなEasy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 09:05:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,860 KB |
| 最終ジャッジ日時 | 2024-11-24 15:19:37 |
| 合計ジャッジ時間 | 1,842 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
from bisect import *
N,M,X,Y = map(int,input().split())
A = list(map(int,input().split()))
A.sort()
y = bisect_right(A,Y)
x = bisect_left(A,X)
if N-x > M:
print("Handicapped")
else:
l = max(bisect_left(A,0),N-M,y)
print(sum(A[l:]))