Ticket 14237
Problem 1677 -c
Submission 161642259
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
6
6 4 5 1 2 3 
5 6 4 2 3 1 
6
6 1 5 2 3 4 
2 4 3 5 6 1 
Expected Output
16
18
Your Output
10
16
Difference
Generator Parameters
--n_high 6 --n_low 1 --t_high 2 --t_low 1