Ticket 4307
Problem 1661 -c
Submission 153240950
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
10
6
4 1 7 8 8 3 
2
8 4 
2
3 9 
6
6 5 7 9 1 9 
9
7 2 4 2 7 2 6 7 3 
7
6 2 8 5 5 3 3 
5
4 8 9 8 7 
6
5 5 5 1 7 1 
6
4 8 7 8 2 4 
9
7 7 4 1 9 6 6 7 9 
Expected Output
12
3
4
12
16
16
6
12
10
17
Your Output
12
3
4
12
16
16
9
12
10
17
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1