Ticket 4901
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
9
21
17 8 1 16 9 13 6 16 16 1 2 17 5 2 17 4 2 15 4 20 
11
9 7 1 2 9 9 4 4 11 4 
24
3 19 13 7 20 6 20 4 4 6 23 20 20 20 18 20 3 15 1 13 18 13 15 
24
12 13 22 15 24 13 11 1 13 7 13 24 7 11 3 12 7 23 1 8 23 13 1 
22
13 22 2 20 18 9 2 2 18 22 9 1 16 2 9 9 9 11 9 2 18 
14
1 14 1 14 7 2 1 13 7 12 10 3 2 
20
7 20 14 7 7 1 2 8 5 17 17 2 5 1 17 7 10 1 2 
17
10 7 2 1 11 10 2 11 1 2 11 4 2 2 1 8 
16
8 13 14 16 13 3 9 1 3 7 7 9 13 4 6 
Expected Output
13
7
12
12
10
9
10
8
11
Generator Parameters
--WA_ON_TC_20 0 --n_high 25 --n_low 10 --t_high 10 --t_low 7