Ticket 8455
Problem 1637 -e
Submission 158728612
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
9 9 9 1 8 2 
2 8
8 9
1 2
4 4
2 8 7 9 
2 7
8 9
2 9
7 9
3 0
6 9 9 
Expected Output
44
30
45
Your Output
44
0
45
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