Ticket 8454
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
23 31
1 2 3
1 17 18
3 2 9 7 12
2 17 18
1 16 12
2 16 12
1 1 10
1 21 19
1 12 18
3 5 6 23 8
2 12 18
3 5 6 20 7
3 3 10 19 20
2 21 19
1 22 3
1 21 6
2 1 10
2 22 3
3 11 11 23 20
3 20 5 21 13
2 2 3
3 2 8 21 23
1 16 19
1 17 4
1 11 20
2 21 6
3 1 4 15 15
2 11 20
2 16 19
2 17 4
3 7 12 14 20
Expected Output
No
No
No
No
No
No
No
No
No
Generator Parameters
--n_high 23 --n_low 23 --q_high 35 --q_low 30