Ticket 6148
Problem 1659 -e
Submission 153924973
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 8
1 3 27
1 5 6
1 6 32
2 4 29
2 5 99
5 7 96
6 7 15
6 8 26
2
4 7
1 7
Expected Output
2
1
Your Output
1
1
Difference
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