Ticket 17046
Problem 1821 -d
Submission 218776187
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
10 20
2 4 6 8 10 13 16 20 24 30 
2 4 6 8 10 14 18 20 25 35 
11 16
2 4 6 8 10 12 15 18 21 25 32 
2 4 6 8 10 13 16 19 21 29 33 
7 19
2 6 10 14 19 25 32 
4 7 12 15 23 27 35 
7 20
2 4 7 12 18 24 32 
2 4 10 15 19 29 32 
12 12
2 4 6 8 10 12 14 16 18 22 26 32 
2 4 6 8 10 12 14 16 18 24 28 37 
8 12
3 6 9 12 16 21 26 32 
4 7 10 14 19 21 28 33 
12 17
2 4 6 8 10 12 14 17 20 24 29 36 
2 4 6 8 10 12 15 17 21 26 33 38 
12 12
2 4 6 8 10 12 15 18 21 24 28 32 
2 4 6 8 10 13 15 19 22 25 30 36 
Expected Output
-1
47
46
-1
43
28
51
40
Your Output
-1
47
46
-1
44
28
51
40
Difference
Generator Parameters
--k_high 20 --k_low 10 --last_segment_starting_point_high 40 --last_segment_starting_point_low 30 --n_high 12 --n_low 6 --t_high 10 --t_low 1