Ticket 2896
Problem 1658 -d2
Submission 151249266
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
8
2 2
1 
2 2
10 
2 2
7 
2 2
5 
2 2
10 
2 2
4 
2 2
6 
2 2
1 
Expected Output
3
8
5
7
8
6
4
3
Your Output
2
8
4
6
8
6
4
2
Difference
Generator Parameters
--l_cap 131071 --l_high 2 --l_low 2 --r_cap 131071 --r_high 2 --r_low 2 --t_cap 100000 --t_high 10 --t_low 1 --x_cap 4096 --x_high 9 --x_low 0