# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
101365 |
2019-03-18T17:26:59 Z |
shafinalam |
Gap (APIO16_gap) |
C++14 |
|
69 ms |
2040 KB |
#include <bits/stdc++.h>
#include "gap.h"
using namespace std;
typedef long long ll;
const int lim = 4e5+5;
#define sf scanf
#define pf printf
#define inf 1e18
ll arr[lim];
ll findGap(int T, int N)
{
ll s = 0, t = inf, mn, mx;
int l = 1, r = N;
while(l<=r)
{
MinMax(s, t, &mn, &mx);
arr[l++] = mn;
arr[r--] = mx;
s = mn+1;
t = mx-1;
}
ll ans = 0;
for(int i = 2; i <= N; i++) max(ans, arr[i]-arr[i-1]);
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Output isn't correct |
2 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
3 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
4 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
5 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
6 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
7 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
8 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
9 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
10 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
11 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
12 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
13 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
14 |
Incorrect |
4 ms |
384 KB |
Output isn't correct |
15 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
16 |
Incorrect |
15 ms |
768 KB |
Output isn't correct |
17 |
Incorrect |
16 ms |
768 KB |
Output isn't correct |
18 |
Incorrect |
14 ms |
768 KB |
Output isn't correct |
19 |
Incorrect |
15 ms |
736 KB |
Output isn't correct |
20 |
Incorrect |
10 ms |
768 KB |
Output isn't correct |
21 |
Incorrect |
50 ms |
1864 KB |
Output isn't correct |
22 |
Incorrect |
69 ms |
1912 KB |
Output isn't correct |
23 |
Incorrect |
48 ms |
1912 KB |
Output isn't correct |
24 |
Incorrect |
54 ms |
1912 KB |
Output isn't correct |
25 |
Incorrect |
48 ms |
1912 KB |
Output isn't correct |
26 |
Incorrect |
53 ms |
1912 KB |
Output isn't correct |
27 |
Incorrect |
51 ms |
1912 KB |
Output isn't correct |
28 |
Incorrect |
68 ms |
1956 KB |
Output isn't correct |
29 |
Incorrect |
50 ms |
1912 KB |
Output isn't correct |
30 |
Incorrect |
36 ms |
1912 KB |
Output isn't correct |
31 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
32 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
2 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
3 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
5 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
6 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
7 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
8 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
9 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
10 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
11 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
12 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
13 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
14 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
15 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
16 |
Incorrect |
15 ms |
768 KB |
Output isn't correct |
17 |
Incorrect |
17 ms |
768 KB |
Output isn't correct |
18 |
Incorrect |
13 ms |
768 KB |
Output isn't correct |
19 |
Incorrect |
17 ms |
768 KB |
Output isn't correct |
20 |
Incorrect |
11 ms |
768 KB |
Output isn't correct |
21 |
Incorrect |
47 ms |
1920 KB |
Expected int32, but "2500100000" found |
22 |
Incorrect |
56 ms |
1992 KB |
Expected int32, but "2500100000" found |
23 |
Incorrect |
55 ms |
1912 KB |
Expected int32, but "2500100000" found |
24 |
Incorrect |
50 ms |
1912 KB |
Expected int32, but "2500100000" found |
25 |
Incorrect |
40 ms |
1956 KB |
Expected int32, but "2500100000" found |
26 |
Incorrect |
51 ms |
1912 KB |
Expected int32, but "2500100000" found |
27 |
Incorrect |
49 ms |
1912 KB |
Expected int32, but "2500100000" found |
28 |
Incorrect |
49 ms |
1912 KB |
Expected int32, but "2500100000" found |
29 |
Incorrect |
49 ms |
2040 KB |
Expected int32, but "2500100000" found |
30 |
Incorrect |
38 ms |
1912 KB |
Expected int32, but "2500100000" found |
31 |
Incorrect |
3 ms |
384 KB |
Output isn't correct |
32 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |