Ticket 17047
Problem 1821 -d
Submission 218778717
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
9
8 14
2 6 11 17 26 35 46 67 
2 6 13 20 28 42 53 71 
8 29
2 5 10 15 24 36 52 68 
2 6 13 15 31 44 63 71 
6 20
2 5 8 13 21 31 
2 6 11 16 23 33 
7 17
2 5 9 13 21 38 73 
2 5 9 19 22 67 76 
10 14
2 4 7 11 15 20 26 35 48 65 
2 5 9 12 18 20 28 45 48 67 
7 14
2 6 11 16 22 32 49 
3 8 12 19 24 47 52 
6 23
3 7 12 20 30 46 
3 9 14 28 40 48 
12 16
2 4 6 8 11 14 18 22 27 32 40 49 
2 4 6 9 12 16 19 23 30 36 47 49 
12 11
2 4 6 8 10 12 14 17 20 23 27 31 
2 4 6 8 10 12 14 18 20 23 29 36 
Expected Output
46
67
-1
51
38
34
45
44
42
Your Output
46
67
-1
51
38
34
45
44
43
Difference
Generator Parameters
--k_high 30 --k_low 10 --last_segment_starting_point_high 80 --last_segment_starting_point_low 30 --n_high 12 --n_low 6 --t_high 10 --t_low 1