Ticket 8563
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
4 3 1000000000000000000
8 6 3 6 
1 3
2 4
4 1
Expected Output
-1
Your Output
8
Difference
Generator Parameters
--dynamic_edges 1 --edges_high 20 --edges_low 0 --k_high 1000000000000000000 --k_low 1000000000000000000 --n_high 7 --n_low 1 --val_high 9 --val_low 1