Ticket 14996
Problem 1696 -d
Submission 162363515
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
20
20 10 13 9 7 8 1 15 14 16 19 2 18 12 3 17 5 4 11 6 
13
1 9 12 11 6 4 10 8 5 3 2 13 7 
Expected Output
9
2
Your Output

          
Difference
Generator Parameters
--n_high 20 --n_low 1 --t_high 2 --t_low 1