Ticket 7691
Problem 1681 -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
2
9
9 4 2 6 7 3 5 8 1 
8
8 2 2 2 4 5 3 5 
6
4 1 6 2 5 3 
8
2 2 5 2 1 3 5 2 
Expected Output
7
5
Generator Parameters
--m_high 9 --m_low 1 --n_high 9 --n_low 2 --t_high 2 --t_low 1