Ticket 13197
Problem 1695 -e
Submission 161145555
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

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

LRLRLR
LRLRLR

UUUUUU
DDDDDD
Difference
Generator Parameters
--n_high 9 --n_low 1