Ticket 15985
Problem 1716 -c
Submission 166993410
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
9
0 0 7 9 1 5 7 3 3 
0 8 0 5 5 2 1 8 8 
5
0 2 9 4 7 
0 0 3 8 6 
Expected Output
24
14
Your Output
24
15
Difference
Generator Parameters
--m_high 9 --m_low 2 --t_high 2 --t_low 1 --val_high 9 --val_low 0