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