Ticket 8530
Problem 1679 -c
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
8 15
1 8 8
1 2 5
3 5 5 6 8
3 4 7 4 8
1 1 5
1 8 4
2 8 4
2 8 8
2 1 5
2 2 5
3 2 5 4 7
1 6 4
3 1 2 4 7
1 5 8
3 7 5 7 7
Expected Output
No
No
No
No
No
Generator Parameters
--n_high 9 --n_low 1 --q_high 15 --q_low 1