Ticket 14732
Problem 1633 -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
5 10
1 2 5
1 3 9
1 4 7
1 5 3
2 3 2
2 4 7
2 5 7
3 4 3
3 5 6
4 5 8
8 22 1 1 7
4 4 2 5 1 3 1 3 
Expected Output
0
Generator Parameters
--a_b_high 20 --a_b_low 0 --c_high 20 --c_low 1 --extra_edges_high 10 --extra_edges_low 0 --k_minus_p_high 20 --k_minus_p_low 0 --n_high 10 --n_low 2 --p_high 9 --p_low 1 --w_high 9 --w_low 1