Ticket 6581
Problem 1674 -g
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
37 39
1 7
1 33
2 7
2 14
2 24
2 37
3 4
3 25
4 18
5 16
5 26
5 27
6 28
6 29
7 15
7 22
8 30
8 31
9 10
9 13
9 17
10 23
11 15
12 20
14 20
14 29
17 20
18 20
19 20
19 27
20 29
21 29
22 35
23 24
23 33
23 35
24 33
29 36
32 37
Expected Output
3
Generator Parameters
--edges_high 50 --edges_low 20 --n_high 40 --n_low 30