Ticket 16020
Problem 1716 -c
Submission 167923498
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
1
4
0 3 3 3 
0 0 3 0 
Expected Output
8
Your Output
7
Difference
87
Generator Parameters
--m_high 4 --m_low 4 --t_high 1 --t_low 1 --val_high 3 --val_low 0