Ticket 17029
Problem 1856 -c
Submission 217389353
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
2
5 1
2 7 1 2 6 
5 1
7 6 7 5 6 
Expected Output
7
7
Your Output
7
8
Difference
Generator Parameters
--k_high 3 --k_low 1 --n_high 5 --n_low 5 --t_high 2 --t_low 2 --val_high 9 --val_low 1