# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
70604 | 2018-08-23T07:21:34 Z | polyfish | Gap (APIO16_gap) | C++14 | 39 ms | 39312 KB |
//I love armpit fetish #include <bits/stdc++.h> #include "gap.h" using namespace std; #define debug(x) cerr << #x << " = " << x << '\n'; #define BP() cerr << "OK!\n"; #define PR(A, n) {cerr << #A << " = "; for (int _=1; _<=n; ++_) cerr << A[_] << ' '; cerr << '\n';} #define PR0(A, n) {cerr << #A << " = "; for (int _=0; _<n; ++_) cerr << A[_] << ' '; cerr << '\n';} #define FILE_NAME "data" const long long INF = 1e18; const int MAX_N = 100002; int n; long long a[MAX_N]; long long solve_subtask_1() { int l = 1, r = n; long long s = 1, t = INF; while (l<=r) { long long *mn; long long *mx; MinMax(s, t, mn, mx); a[l] = *mn; a[r] = *mx; s = *mn + 1; t = *mx - 1; } long long res = 0; for (int i=2; i<=n; ++i) res = max(res, a[i] - a[i-1]); return res; } long long findGap(int testID, int N) { n = N; if (testID==1) return solve_subtask_1(); return 0; // else // return solve_subtask_2(); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 3 ms | 344 KB | Execution failed because the return code was nonzero |
2 | Runtime error | 2 ms | 368 KB | Execution failed because the return code was nonzero |
3 | Runtime error | 3 ms | 460 KB | Execution failed because the return code was nonzero |
4 | Runtime error | 3 ms | 608 KB | Execution failed because the return code was nonzero |
5 | Runtime error | 2 ms | 728 KB | Execution failed because the return code was nonzero |
6 | Runtime error | 3 ms | 728 KB | Execution failed because the return code was nonzero |
7 | Runtime error | 2 ms | 728 KB | Execution failed because the return code was nonzero |
8 | Runtime error | 2 ms | 728 KB | Execution failed because the return code was nonzero |
9 | Runtime error | 3 ms | 728 KB | Execution failed because the return code was nonzero |
10 | Runtime error | 2 ms | 728 KB | Execution failed because the return code was nonzero |
11 | Runtime error | 2 ms | 728 KB | Execution failed because the return code was nonzero |
12 | Runtime error | 3 ms | 916 KB | Execution failed because the return code was nonzero |
13 | Runtime error | 3 ms | 916 KB | Execution failed because the return code was nonzero |
14 | Runtime error | 3 ms | 916 KB | Execution failed because the return code was nonzero |
15 | Runtime error | 2 ms | 916 KB | Execution failed because the return code was nonzero |
16 | Runtime error | 11 ms | 1532 KB | Execution failed because the return code was nonzero |
17 | Runtime error | 10 ms | 1996 KB | Execution failed because the return code was nonzero |
18 | Runtime error | 11 ms | 2460 KB | Execution failed because the return code was nonzero |
19 | Runtime error | 11 ms | 2940 KB | Execution failed because the return code was nonzero |
20 | Runtime error | 8 ms | 3020 KB | Execution failed because the return code was nonzero |
21 | Runtime error | 34 ms | 5504 KB | Execution failed because the return code was nonzero |
22 | Runtime error | 39 ms | 7348 KB | Execution failed because the return code was nonzero |
23 | Runtime error | 34 ms | 9168 KB | Execution failed because the return code was nonzero |
24 | Runtime error | 39 ms | 11076 KB | Execution failed because the return code was nonzero |
25 | Runtime error | 28 ms | 12204 KB | Execution failed because the return code was nonzero |
26 | Runtime error | 36 ms | 14104 KB | Execution failed because the return code was nonzero |
27 | Runtime error | 39 ms | 15948 KB | Execution failed because the return code was nonzero |
28 | Runtime error | 35 ms | 17836 KB | Execution failed because the return code was nonzero |
29 | Runtime error | 32 ms | 19696 KB | Execution failed because the return code was nonzero |
30 | Runtime error | 18 ms | 20388 KB | Execution failed because the return code was nonzero |
31 | Runtime error | 3 ms | 20388 KB | Execution failed because the return code was nonzero |
32 | Runtime error | 3 ms | 20388 KB | Execution failed because the return code was nonzero |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 20388 KB | Output isn't correct |
2 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
3 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
4 | Incorrect | 2 ms | 20388 KB | Output isn't correct |
5 | Incorrect | 2 ms | 20388 KB | Output isn't correct |
6 | Incorrect | 2 ms | 20388 KB | Output isn't correct |
7 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
8 | Incorrect | 2 ms | 20388 KB | Output isn't correct |
9 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
10 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
11 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
12 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
13 | Incorrect | 2 ms | 20388 KB | Output isn't correct |
14 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
15 | Incorrect | 3 ms | 20388 KB | Output isn't correct |
16 | Incorrect | 10 ms | 20608 KB | Output isn't correct |
17 | Incorrect | 14 ms | 20944 KB | Output isn't correct |
18 | Incorrect | 11 ms | 21536 KB | Output isn't correct |
19 | Incorrect | 11 ms | 21872 KB | Output isn't correct |
20 | Incorrect | 7 ms | 22048 KB | Output isn't correct |
21 | Incorrect | 30 ms | 24400 KB | Output isn't correct |
22 | Incorrect | 36 ms | 26272 KB | Output isn't correct |
23 | Incorrect | 33 ms | 28116 KB | Output isn't correct |
24 | Incorrect | 31 ms | 29960 KB | Output isn't correct |
25 | Incorrect | 23 ms | 31180 KB | Output isn't correct |
26 | Incorrect | 33 ms | 33092 KB | Output isn't correct |
27 | Incorrect | 30 ms | 34880 KB | Output isn't correct |
28 | Incorrect | 34 ms | 36904 KB | Output isn't correct |
29 | Incorrect | 33 ms | 38568 KB | Output isn't correct |
30 | Incorrect | 27 ms | 39312 KB | Output isn't correct |
31 | Incorrect | 4 ms | 39312 KB | Output isn't correct |
32 | Incorrect | 2 ms | 39312 KB | Output isn't correct |