Ticket 13691
Problem 1695 -e
Submission 161382995
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 5
3 4 7 9 10 
6 7 5 10 10 

ULRLR
DLRLR

UUUUU
DDDDD
Difference
Generator Parameters
--n_high 9 --n_low 1