Ticket 8741
Problem 1649 -b
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
9
2
9 5 
5
8 8 2 0 8 
3
9 8 8 
5
9 1 7 6 4 
2
3 7 
2
4 0 
5
9 2 0 6 8 
5
1 1 1 8 3 
2
7 8 
Expected Output
4
1
1
1
4
4
1
2
1
Generator Parameters
--n_high 5 --n_low 2 --t_high 10 --t_low 1 --val_high 9 --val_low 0