数列删数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
你学废数列了吗?
Description
给出长度为 的数列,每次只能删除右端或左端小于等于 的数,求最多能删除几个数。
Format
Input
第1行两个整数
第2行个整数, 表示数列
Output
一个数, 表示最多可以删除多少个数.
Samples
8 4
4 2 3 1 5 1 6 4
5
5 2
3 1 2 1 3
0
5 100
12 34 55 43 21
5
Limitation
1s, 1024KiB for each test case.
大明
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 38
- Start at
- 2025-2-11 16:00
- End at
- 2025-2-28 8:00
- Duration
- 400 hour(s)
- Host
- Partic.
- 7