Ticket 14481
Problem 1695 -e
Submission 161877775
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 1
1 7
3 12
11 12
5 10
7 5
Expected Output
6 2

10 1
5 10
7 5
1 7
12 3
11 12

LR
UU
DD
LR
LR
LR

UU
DD
UU
DD
UU
DD
Your Output
2 6
5 7 1 10 11 12 
10 1 7 5 12 3 
ULRUUU
DLRDDD
LRLRLR
LRLRLR
Difference
Generator Parameters
--n_high 6 --n_low 6