Ticket 7711
Problem 1635 -e
Submission 156880439
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 12
1 1 3
2 1 5
2 1 7
2 2 3
2 2 4
2 2 6
2 2 7
1 3 4
1 3 7
1 4 7
1 5 7
2 6 7
Expected Output
NO
Your Output
YES
R 4
R 0
L 1
L 2
L 5
L 3
L 6
Difference
Generator Parameters
--choose_m_dynamically 0 --m_high 20 --m_low 1 --n_high 9 --n_low 2