Ticket 15070
Problem 1659 -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
8 17
1 6 11
1 7 19
2 3 52
2 4 66
2 6 11
2 7 54
2 8 87
3 4 93
3 6 26
3 7 63
3 8 74
4 5 23
4 6 47
5 6 76
6 7 4
6 8 43
7 8 37
5
2 7
5 8
4 8
2 3
2 5
Expected Output
0
0
0
0
0
Generator Parameters
--choose_edges_dynamically 0 --extra_edges_high 10 --extra_edges_low 0 --n_high 9 --n_low 2 --q_high 9 --q_low 1 --w_high 99 --w_low 0