Ticket 16086
Problem 1715 -c
Submission 169556443
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
4 9
8 1 5 4 
4 9
2 4
4 8
1 2
4 5
3 7
1 8
4 5
3 7
Expected Output
20
20
20
20
17
20
20
20
20
Your Output
23
23
23
23
20
24
24
24
24
Difference
Generator Parameters
--m_high 9 --m_low 1 --n_high 9 --n_low 1 --val_high 9 --val_low 1 --x_high 9 --x_low 1