【2016-2017#6】 序列最大值
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.
Description
给出一个数列,请你求出一个最大的整数 ,使原数列中至少有 个数 。
Input Format
第一行,一个正整数 ,表示数列中数的个数;
第二行, 个整数 ,表示数列中的数。
Output Format
一行,一个整数 ,表示符合条件的最小整数。
5
1 1 4 8 1
2
5
8 5 3 4 10
4
Hint
提示
【样例解释 #1】
比 大的数有 个,分别是 和 。
【样例解释 #2】
比 大的数有 个,分别是 ,, 和 。
【数据范围】
对于 的数据,,。
Source
[COCI2016-2017#6] Hindeks
2025ACM暑假练习题
- Status
- Done
- Rule
- XCPC
- Problem
- 7
- Start at
- 2025-7-1 14:00
- End at
- 2025-7-1 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 28