Ticket 4906
Problem 1665 -c
Submission 153592413
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
7
10
1 8 8 9 2 8 2 7 7 
5
5 4 1 1 
30
17 16 14 17 18 16 14 7 17 4 17 2 27 8 2 1 27 14 5 27 17 14 22 19 28 17 16 25 27 
10
3 1 1 3 3 3 1 1 1 
18
4 17 13 10 10 1 12 14 7 16 1 14 1 4 1 1 13 
19
13 18 5 3 18 1 2 3 13 19 18 18 17 3 15 10 7 13 
3
1 2 
Expected Output
6
4
16
5
10
12
3
Your Output
6
4
16
4
10
12
3
Difference
Generator Parameters
--WA_ON_TC_20 0 --n_high 30 --n_low 2 --t_high 9 --t_low 1