Ticket 7339
Problem 1681 -c
Submission 158260673
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
2
1 2 
1 1 
9
9 1 7 4 9 9 9 4 3 
9 1 5 3 3 6 8 8 3 
Expected Output
0
-1
Your Output
0
23
1 2
2 3
3 4
7 8
8 9
2 3
6 7
7 8
5 6
6 7
4 5
5 6
3 4
4 5
3 4
2 3
4 5
6 7
7 8
8 9
5 6
6 7
4 5
Difference
Generator Parameters
--n_high 9 --n_low 2 --t_high 2 --t_low 1