最长区间去模
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.
有一个长度为的数组,第个位置是。
我们现在需要找到一个最长的区间满足:存在一个整数,使得区间内所有数字都满足全相等。
输出这个最长的区间长度即可。
输入格式
第一行输入,第二行输入个正整数。
输出格式
输出一个数字代表答案。
5
1 5 2 4 6
3
4
8 2 5 10
3
8
465 55 3 54 234 12 45 78
6
5
1 2 3 4 5
1
data6.in
data6.out
data7.in
data7.out
数据范围
对于20%的数据:。
对于40%的数据:。
对于70%的数据:。
对于100%的数据:。
0110A
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2026-1-10 13:30
- End at
- 2026-1-10 17:00
- Duration
- 3.5 hour(s)
- Host
- Partic.
- 18