Ticket 2300
Problem 1635 -e
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
9 16
1 1 7
1 1 9
2 2 4
2 2 5
2 2 9
1 3 5
2 3 7
1 3 8
2 4 6
2 4 8
2 5 7
2 5 8
2 5 9
2 6 7
1 7 8
1 8 9
Expected Output
NO
Generator Parameters
--choose_m_dynamically 0 --m_cap 200000 --m_high 20 --m_low 1 --n_cap 200000 --n_high 9 --n_low 2