Ticket 377
Problem 1637 -e
Submission 146259778
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 2
9 9 9 1 8 2 
2 8
8 9
5 0
6 2 8 7 9 
8 1
1 4 2 8 6 9 9 7 
4 8
Expected Output
44
34
51
Your Output
6
34
51
Difference
Generator Parameters
--choose_dynamic_m 0 --m_cap 6 --m_high 10 --m_low 0 --n_cap 6 --n_high 10 --n_low 2 --t_cap 5 --t_high 5 --t_low 1 --val_cap 100 --val_high 9 --val_low 1