Ticket 14784
Problem 1679 -d
Submission 162047380
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
14 18 249186586155763
4 18 15 5 11 15 20 14 10 12 12 17 12 5 
3 8
3 12
4 1
4 7
5 3
6 11
7 6
7 8
7 12
8 3
8 4
8 14
9 4
10 7
10 13
13 5
13 14
14 8
Expected Output
14
Your Output
12
Difference
Generator Parameters
--dynamic_edges 0 --edges_high 20 --edges_low 2 --k_high 1000000000000000 --k_low 1 --n_high 20 --n_low 5 --val_high 20 --val_low 1