Ticket 285
Problem 1637 -e
Submission 146166052
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
10 4
1 5 4 7 9 3 4 8 8 2 
2 9
5 7
4 9
3 9
8 3
8 4 5 3 7 7 2 5 
4 7
2 7
7 8
2 0
2 6 
Expected Output
51
48
16
Your Output
51
39
16
Difference
Generator Parameters
--choose_dynamic_m 0 --m_cap 300000 --m_high 4 --m_low 0 --n_cap 300000 --n_high 10 --n_low 2 --t_cap 10000 --t_high 5 --t_low 1 --val_cap 100 --val_high 9 --val_low 1