Ticket 4607
Problem 1665 -e
Submission 153356441
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
1
69
70369 33926 25976 11235 25474 67521 8968 23577 2211 13210 28325 52022 49699 57021 4586 49294 31633 16215 78579 2332 64172 89644 97275 44627 2868 6086 86630 79905 77035 78281 21777 34871 78718 24525 69805 48677 60991 43196 77394 82312 92847 24306 19071 15164 8320 85822 19710 2863 73153 39829 48849 49011 17420 4203 39192 70825 32767 89805 92970 16254 48878 2042 91211 35554 69125 23622 12121 53709 62207 
53
44 64
9 30
44 47
11 51
19 29
47 62
43 60
24 52
27 47
8 67
1 48
2 12
2 50
8 59
17 68
54 68
43 45
22 25
9 30
56 60
31 59
39 53
20 51
13 41
8 14
19 44
4 43
43 48
24 59
36 38
26 68
21 22
20 23
7 40
24 32
18 29
1 68
25 42
1 8
29 32
51 69
2 22
50 52
26 30
34 49
32 56
48 67
22 57
6 26
17 27
3 41
7 67
1 4
Expected Output
4095
2495
15292
2876
2876
4095
7023
2879
15292
2495
2495
11179
2495
2495
2876
6139
15292
44919
2495
32767
7023
11183
2876
2876
15291
2876
2495
11183
2879
48829
4095
130732
64444
2495
8182
2876
2495
8182
11243
56631
6139
2495
49109
79823
11183
7023
4095
2879
2495
2876
2495
2495
28667
Your Output
4095
2495
15292
2332
2876
4095
7023
2879
15292
2042
2211
11179
2211
2211
2042
6139
15292
44919
2495
32767
7023
11183
2332
2876
15291
2876
2211
11183
2863
48829
2042
130732
64444
2211
8182
2876
2042
8182
11243
56631
6139
2495
49109
79823
11183
7023
4095
2863
2495
2876
2211
2042
28667
Difference
Generator Parameters
--n_high 100 --n_low 2 --q_high 100 --q_low 1 --t_high 1 --t_low 1 --val_high 100000 --val_low 0