# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1011657 |
2024-07-01T03:12:16 Z |
ezzzay |
Gap (APIO16_gap) |
C++14 |
|
35 ms |
5060 KB |
#include "gap.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const int MN=2e6;
ll arr[MN];
long long findGap(int T, int N){
int l=0,r=N-1;
ll s=0,t=1e18;
while(1){
ll mn,mx;
MinMax(s,t,&mn,&mx);
arr[l]=mn;
arr[r]=mx;
s=mn+1;
t=mx-1;
l++;
r--;
if(l+1==r or l==r)break;
}
ll ans=0;
for(int i=1;i<N;i++){
ans=max(ans,arr[i]-arr[i-1]);
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
344 KB |
Execution failed because the return code was nonzero |
2 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
15 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
16 |
Incorrect |
7 ms |
4788 KB |
Output isn't correct |
17 |
Incorrect |
7 ms |
4696 KB |
Output isn't correct |
18 |
Incorrect |
7 ms |
4696 KB |
Output isn't correct |
19 |
Incorrect |
7 ms |
4696 KB |
Output isn't correct |
20 |
Incorrect |
5 ms |
4696 KB |
Output isn't correct |
21 |
Incorrect |
25 ms |
4848 KB |
Output isn't correct |
22 |
Incorrect |
31 ms |
5060 KB |
Output isn't correct |
23 |
Incorrect |
25 ms |
4952 KB |
Output isn't correct |
24 |
Incorrect |
26 ms |
4952 KB |
Output isn't correct |
25 |
Incorrect |
23 ms |
4952 KB |
Output isn't correct |
26 |
Incorrect |
35 ms |
5040 KB |
Output isn't correct |
27 |
Incorrect |
27 ms |
4848 KB |
Output isn't correct |
28 |
Incorrect |
25 ms |
4952 KB |
Output isn't correct |
29 |
Incorrect |
33 ms |
4952 KB |
Output isn't correct |
30 |
Incorrect |
21 ms |
4952 KB |
Output isn't correct |
31 |
Correct |
1 ms |
2392 KB |
Output is correct |
32 |
Incorrect |
1 ms |
2484 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
2392 KB |
Execution failed because the return code was nonzero |
2 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
2640 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
16 |
Incorrect |
7 ms |
4696 KB |
Output isn't correct |
17 |
Incorrect |
10 ms |
4696 KB |
Output isn't correct |
18 |
Incorrect |
6 ms |
4788 KB |
Output isn't correct |
19 |
Incorrect |
6 ms |
4696 KB |
Output isn't correct |
20 |
Incorrect |
6 ms |
4696 KB |
Output isn't correct |
21 |
Incorrect |
27 ms |
5044 KB |
Expected int32, but "2500099997" found |
22 |
Incorrect |
24 ms |
4948 KB |
Expected int32, but "2500099997" found |
23 |
Incorrect |
28 ms |
4952 KB |
Expected int32, but "2500099997" found |
24 |
Incorrect |
21 ms |
4952 KB |
Expected int32, but "2500099997" found |
25 |
Incorrect |
28 ms |
4852 KB |
Expected int32, but "2500099997" found |
26 |
Incorrect |
31 ms |
4952 KB |
Expected int32, but "2500099997" found |
27 |
Incorrect |
27 ms |
4952 KB |
Expected int32, but "2500099997" found |
28 |
Incorrect |
24 ms |
4952 KB |
Expected int32, but "2500099997" found |
29 |
Incorrect |
33 ms |
4952 KB |
Expected int32, but "2500099997" found |
30 |
Incorrect |
18 ms |
4952 KB |
Expected int32, but "2500099997" found |
31 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
32 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |