Ticket 14050
Problem 1658 -d2
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
1
5 9
0 15 1 2 14 
Expected Output
7
Generator Parameters
--l_high 9 --l_low 0 --r_high 9 --r_low 0 --t_high 1 --t_low 1 --x_high 9 --x_low 0