Ticket 719
Problem 1635 -e
Submission 148264184
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
7 5
2 1 2
1 1 3
1 2 7
1 3 7
1 4 7
Expected Output
YES
L 4
R 2
R 5
R 3
L 6
L 7
L 1
Your Output
YES
L 1
R -2
R -3
R -4
L 5
L 6
L -7
Difference
Generator Parameters
--choose_m_dynamically 0 --m_cap 200000 --m_high 5 --m_low 1 --n_cap 200000 --n_high 9 --n_low 2