Ticket 4801
Problem 1661 -c
Submission 153456126
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
3
6 7 3 
7
3 4 7 2 4 3 7 
3
3 7 1 
3
8 4 5 
1
5 
8
5 9 4 8 5 8 4 5 
8
9 5 5 9 3 8 7 7 
4
4 5 7 2 
3
3 2 9 
7
2 7 3 9 3 3 9 
Expected Output
4
13
7
5
0
16
13
7
9
18
Your Output
5
13
7
5
0
16
13
7
9
18
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1