Ticket 14734
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
6 15
1 2 53
1 3 92
1 4 2
1 5 76
1 6 23
2 3 24
2 4 1
2 5 79
2 6 28
3 4 87
3 5 83
3 6 11
4 5 25
4 6 70
5 6 40
8 18 60 30 69
26 11 21 1 13 67 36 6 
Expected Output
105
Generator Parameters
--a_b_high 100 --a_b_low 0 --c_high 100 --c_low 1 --extra_edges_high 20 --extra_edges_low 0 --k_minus_p_high 20 --k_minus_p_low 0 --n_high 10 --n_low 2 --p_high 10 --p_low 1 --w_high 100 --w_low 1