Ticket 6837
Problem 1678 -e
Submission 156390161
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
8
5
4 2 3 1 5 
1 4 3 2 5 
1
1 
1 
8
4 6 7 5 3 8 2 1 
2 7 4 6 8 5 1 3 
8
3 2 8 7 4 1 6 5 
6 2 3 4 1 7 8 5 
8
3 5 4 2 8 7 1 6 
7 1 3 2 8 4 5 6 
8
2 6 1 5 4 3 7 8 
8 7 3 2 1 6 5 4 
2
2 1 
2 1 
1
1 
1 
Expected Output
8
0
32
24
24
32
0
0
Your Output
8
0
30
24
24
30
0
0
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 10 --t_low 1