Ticket 4755
Problem 1665 -c
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
15
12
4 2 1 2 4 4 11 1 1 7 1 
13
4 5 5 1 10 8 10 5 2 13 2 4 
9
3 8 8 4 1 8 9 6 
14
13 5 1 13 5 5 4 11 5 14 13 4 2 
9
8 1 3 7 1 1 1 1 
14
7 8 10 10 7 4 4 8 1 7 6 12 12 
7
7 7 2 7 3 1 
13
13 6 1 13 9 4 13 12 12 4 7 7 
5
3 4 1 1 
13
6 8 1 10 4 1 6 1 11 4 11 6 
11
3 5 2 1 4 4 7 5 3 2 
7
1 4 5 6 7 1 
8
4 4 6 4 1 3 4 
13
6 13 1 12 7 9 7 1 2 8 9 8 
12
6 6 7 4 7 8 1 4 8 7 11 
Expected Output
6
8
7
8
5
8
5
8
4
7
7
6
5
9
7
Generator Parameters
--WA_ON_TC_20 0 --n_high 15 --n_low 5 --t_high 15 --t_low 5