Ticket 5673
Problem 1671 -d
Submission 154617628
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
20
2 14
36 72 
3 4
26 92 82 
4 1
12 15 2 53 
4 3
97 46 73 67 
3 11
69 45 9 
5 11
24 14 17 42 13 
4 6
11 25 19 11 
5 7
52 52 64 95 5 
1 5
4 
3 4
54 29 30 
3 4
74 32 68 
5 8
83 19 77 58 24 
3 4
74 25 83 
4 11
75 78 47 38 
3 12
85 35 53 
2 3
13 54 
3 2
24 67 86 
3 6
6 95 50 
3 8
44 83 95 
5 11
61 57 4 4 93 
Expected Output
71
101
69
150
68
79
38
137
4
55
140
198
155
80
120
53
85
139
94
152
Your Output
71
101
78
150
76
79
38
141
4
55
145
198
180
80
120
53
85
139
94
152
Difference
Generator Parameters
--n_high 5 --n_low 1 --t_high 20 --t_low 20 --val_high 99 --val_low 1 --x_high 15 --x_low 1