Ticket 14166
Problem 1694 -d
Submission 161581989
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
9
12
1 2 2 2 3 1 7 6 9 8 6 
10 13
5 8
4 13
3 6
8 15
13 14
9 10
5 14
4 6
9 9
3 6
12 13
8
1 1 3 3 3 4 1 
8 15
10 13
3 14
3 7
1 15
5 8
10 14
7 12
12
1 2 1 3 3 3 4 4 7 4 4 
2 13
3 9
1 4
15 15
1 10
7 8
10 14
10 11
2 2
2 5
3 10
6 13
7
1 2 1 2 2 2 
1 8
10 14
3 8
9 9
5 7
5 12
15 15
11
1 2 1 3 4 5 6 8 2 8 
1 5
7 9
13 15
6 13
2 3
8 14
2 9
9 14
5 6
8 11
10 12
6
1 2 3 2 1 
2 12
1 14
11 12
2 6
4 9
6 7
13
1 1 3 2 5 3 4 4 6 9 6 12 
6 14
1 3
3 12
11 12
7 7
6 9
4 15
1 14
6 8
13 14
7 9
2 3
14 15
15
1 1 1 4 3 2 2 2 3 4 6 12 2 8 
1 14
6 11
13 13
7 12
11 11
8 10
1 11
3 10
7 15
6 9
13 14
1 15
5 14
7 8
1 4
14
1 2 1 3 4 6 3 4 6 8 1 12 9 
15 15
3 10
10 11
9 12
6 8
3 8
1 3
4 5
10 12
1 15
1 5
10 15
12 14
3 4
Expected Output
6
5
8
5
5
4
5
8
7
Your Output
5
5
8
5
5
4
5
8
7
Difference
Generator Parameters
--L_or_R_high 15 --L_or_R_low 1 --n_high 20 --n_low 2 --t_high 10 --t_low 1