Ticket 2820
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
6 8 9 7 4 
Expected Output
1
Generator Parameters
--l_cap 131071 --l_high 9 --l_low 0 --r_cap 131071 --r_high 9 --r_low 0 --t_cap 100000 --t_high 1 --t_low 1 --x_cap 4096 --x_high 9 --x_low 0