Ticket 13722
Problem 1695 -e
Submission 161398821
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
6
10 10
8 3
3 6
10 9
5 7
4 7
Expected Output
6 2

8 3
3 6
7 4
5 7
10 9
10 10

LR
LR
LR
LR
LR
LR

UU
DD
UU
DD
UU
DD
Your Output
2 6

3 6 4 7 0 0 
8 3 7 5 0 0 

LRLR��
LRLR��

UUUU��
DDDD��

Difference
Generator Parameters
--n_high 9 --n_low 1