Ticket 14928
Problem 1633 -e
Submission 162302937
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 8
1 2 3
1 3 3
1 5 2
2 3 3
2 4 2
3 4 2
3 5 3
4 5 2
3 4 0 4 5
1 4 4 
Expected Output
1
Your Output
2
Difference
Generator Parameters
--a_b_high 5 --a_b_low 0 --c_high 5 --c_low 1 --extra_edges_high 5 --extra_edges_low 0 --k_minus_p_high 1 --k_minus_p_low 0 --n_high 5 --n_low 2 --p_high 3 --p_low 1 --w_high 3 --w_low 1