Ticket 5898
Problem 1631 -b
Submission 154968905
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
8
2
1 2 
9
9 1 8 2 1 3 4 3 6 
9
8 7 9 7 1 1 4 2 8 
4
4 4 2 4 
9
5 8 6 4 1 6 2 7 1 
2
1 2 
7
2 1 3 5 4 5 3 
8
4 2 8 4 3 5 1 3 
Expected Output
1
4
3
1
3
1
3
3
Your Output
1
4
3
1
4
1
3
3
Difference
Generator Parameters
--n_high 10 --n_low 1 --t_high 10 --t_low 1