Ticket 2919
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
3 3
2 1 2
2 1 3
2 2 3
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