删除最少的元素
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.
题目描述
给定有 n 个数的 A 序列:。对于这个序列,我们想得到一个子序列
,
满足 。
从 A 序列最少删除多少元素,可以得到我们想要的子序列。
输入格式
第一行输入一个整数 n,代表 A 序列中数字的个数。 第二个输入 n 个整数,代表。
输出格式
输出需要删除的元素个数,占一行。
7
3 2 4 1 2 5 3
2
周洋光
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2023-12-8 17:00
- End at
- 2023-12-8 19:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 2