Ticket 8457
Problem 1637 -e
Submission 158729185
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
3
6 3
3 9 9 8 1 8 
8 9
1 8
3 9
9 0
2 9 1 5 6 2 4 6 2 
8 2
4 5 5 1 5 4 2 3 
2 5
4 5
Expected Output
33
45
32
Your Output
30
45
32
Difference
Generator Parameters
--choose_dynamic_m 0 --m_high 4 --m_low 0 --n_high 10 --n_low 2 --t_high 5 --t_low 1 --val_high 9 --val_low 1