Ticket 8561
Problem 1679 -d
Submission 158786551
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 13 10000000000000000
14 5 13 4 6 1 15 15 
2 4
3 2
3 4
3 5
3 6
4 1
6 3
6 4
6 7
7 2
7 3
8 1
8 4
Expected Output
13
Your Output
5
Difference
Generator Parameters
--dynamic_edges 1 --edges_high 20 --edges_low 0 --k_high 10000000000000000 --k_low 9999999999999999 --n_high 9 --n_low 1 --val_high 15 --val_low 1