# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1015097 | 2024-07-06T05:27:51 Z | vjudge1 | Gap (APIO16_gap) | C++17 | 22 ms | 3508 KB |
#include "gap.h" #include <bits/stdc++.h> using namespace std; #define int long long int findGap(signed t,signed n) { int a[n],i=0,j=n-1,*mn,*mx,lim1=0,lim2=1e18; while (i<=j) { MinMax(lim1,lim2,mn,mx); a[i++]=*mn; a[j--]=*mx; lim1=*mn+1; lim2=*mx-1; } int ans=0; for (int i=0;i<n-1;i++) ans=max(ans,a[i+1]-a[i]); return ans; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 0 ms | 344 KB | Execution failed because the return code was nonzero |
2 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
3 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
4 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
5 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
6 | Runtime error | 0 ms | 2476 KB | Execution failed because the return code was nonzero |
7 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
8 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
9 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
10 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
11 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
12 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
13 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
14 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
15 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
16 | Runtime error | 5 ms | 2648 KB | Execution failed because the return code was nonzero |
17 | Runtime error | 3 ms | 2560 KB | Execution failed because the return code was nonzero |
18 | Runtime error | 5 ms | 2648 KB | Execution failed because the return code was nonzero |
19 | Runtime error | 3 ms | 2648 KB | Execution failed because the return code was nonzero |
20 | Runtime error | 2 ms | 2648 KB | Execution failed because the return code was nonzero |
21 | Runtime error | 13 ms | 3416 KB | Execution failed because the return code was nonzero |
22 | Runtime error | 18 ms | 3500 KB | Execution failed because the return code was nonzero |
23 | Runtime error | 12 ms | 3416 KB | Execution failed because the return code was nonzero |
24 | Runtime error | 11 ms | 3416 KB | Execution failed because the return code was nonzero |
25 | Runtime error | 9 ms | 3416 KB | Execution failed because the return code was nonzero |
26 | Runtime error | 14 ms | 3416 KB | Execution failed because the return code was nonzero |
27 | Runtime error | 18 ms | 3500 KB | Execution failed because the return code was nonzero |
28 | Runtime error | 12 ms | 3416 KB | Execution failed because the return code was nonzero |
29 | Runtime error | 13 ms | 3488 KB | Execution failed because the return code was nonzero |
30 | Runtime error | 8 ms | 3416 KB | Execution failed because the return code was nonzero |
31 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
32 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
2 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
3 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
4 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
5 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
6 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
7 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
8 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
9 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
10 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
11 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
12 | Runtime error | 0 ms | 2392 KB | Execution failed because the return code was nonzero |
13 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
14 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
15 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
16 | Runtime error | 3 ms | 2568 KB | Execution failed because the return code was nonzero |
17 | Runtime error | 7 ms | 2776 KB | Execution failed because the return code was nonzero |
18 | Runtime error | 4 ms | 2644 KB | Execution failed because the return code was nonzero |
19 | Runtime error | 4 ms | 2648 KB | Execution failed because the return code was nonzero |
20 | Runtime error | 3 ms | 2648 KB | Execution failed because the return code was nonzero |
21 | Runtime error | 22 ms | 3408 KB | Execution failed because the return code was nonzero |
22 | Runtime error | 14 ms | 3416 KB | Execution failed because the return code was nonzero |
23 | Runtime error | 22 ms | 3416 KB | Execution failed because the return code was nonzero |
24 | Runtime error | 12 ms | 3416 KB | Execution failed because the return code was nonzero |
25 | Runtime error | 10 ms | 3504 KB | Execution failed because the return code was nonzero |
26 | Runtime error | 13 ms | 3416 KB | Execution failed because the return code was nonzero |
27 | Runtime error | 19 ms | 3412 KB | Execution failed because the return code was nonzero |
28 | Runtime error | 12 ms | 3500 KB | Execution failed because the return code was nonzero |
29 | Runtime error | 13 ms | 3416 KB | Execution failed because the return code was nonzero |
30 | Runtime error | 8 ms | 3508 KB | Execution failed because the return code was nonzero |
31 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |
32 | Runtime error | 1 ms | 2392 KB | Execution failed because the return code was nonzero |