Ticket 13516
Problem 1677 -c
Submission 161314656
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
8
7 4 3 1 2 6 5 8 
2 3 1 7 6 8 4 5 
9
1 2 5 9 3 8 4 6 7 
3 9 6 1 7 4 5 8 2 
Expected Output
32
40
Your Output
32
36
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 2 --t_low 1