Ticket 9201
Problem 1682 -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
5
4
2 1 1 2 
4
1 1 2 1 
4
1 2 1 2 
4
1 1 2 1 
4
1 2 1 2 
Expected Output
2
2
2
2
2
Generator Parameters
--n_high 4 --n_low 4 --t_high 5 --t_low 5 --val_high 2 --val_low 1