Ticket 1150
Problem 1635 -e
Submission 148677330
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 5
2 2 3
1 2 4
1 2 5
1 3 6
2 5 6
Expected Output
NO
Your Output

          
Difference
Generator Parameters
--choose_m_dynamically 0 --m_cap 200000 --m_high 20 --m_low 1 --n_cap 200000 --n_high 9 --n_low 2