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