Ticket 15848
Problem 1705 -e
Submission 164435853
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
5 8
6 2 1 2 4 
5 5
2 8
4 3
4 1
4 5
3 8
4 1
1 9
Expected Output
6
8
8
8
8
9
9
10
Your Output
6
8
8
8
8
9
9
9
Difference
Generator Parameters
--l_high 9 --l_low 1 --n_high 9 --n_low 2 --q_high 9 --q_low 1 --val_high 9 --val_low 1