Ticket 15974
Problem 1679 -b
Submission 166263864
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 13
1 
2 5
2 1
1 1 5
2 7
2 9
1 1 5
1 1 7
2 7
1 1 1
2 9
2 4
2 9
2 3
Expected Output
5
1
5
7
9
5
7
7
1
9
4
9
3
Your Output
5
1
5
7
9
5
3
7
1
9
4
9
3
Difference
Generator Parameters
--n_high 9 --n_low 1 --q_high 15 --q_low 1 --val_high 9 --val_low 1 --x_high 9 --x_low 1