Ticket 16868
Problem 1716 -c
Submission 1
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
0 9 5 6 3 0 
0 6 2 4 6 8 
4
0 5 5 3 
7 0 4 8 
Expected Output
16
12
Your Output
18
12
Difference
Generator Parameters
--m_high 9 --m_low 2 --t_high 2 --t_low 1 --val_high 9 --val_low 0