# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1100327 |
2024-10-13T13:53:12 Z |
adkjt |
Gap (APIO16_gap) |
C++14 |
|
39 ms |
2860 KB |
#include "gap.h"
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll pl,pr;
ll l=0,r=1e18;
long long findGap(int T, int N)
{
ll mx=0;
if(T==1)
{
MinMax(l,r,&pl,&pr);
l=pl,r=pr;
for(int i=1;i<=(N+1)/2;i++){
MinMax(l+1,r-1,&pl,&pr);
if(pl!=-1)
mx=max(mx,abs(pl-l));
if(pr!=-1)
mx=max(mx,abs(pr-l));
l=pl,r=pr;
}
}
return mx;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
2 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
3 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
4 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
5 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
6 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
10 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
11 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
13 |
Incorrect |
2 ms |
2384 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
15 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
16 |
Incorrect |
7 ms |
2596 KB |
Output isn't correct |
17 |
Incorrect |
7 ms |
2384 KB |
Output isn't correct |
18 |
Incorrect |
7 ms |
2384 KB |
Output isn't correct |
19 |
Incorrect |
7 ms |
2384 KB |
Output isn't correct |
20 |
Runtime error |
5 ms |
2384 KB |
Execution failed because the return code was nonzero |
21 |
Incorrect |
27 ms |
2640 KB |
Output isn't correct |
22 |
Incorrect |
27 ms |
2640 KB |
Output isn't correct |
23 |
Incorrect |
39 ms |
2860 KB |
Output isn't correct |
24 |
Incorrect |
27 ms |
2640 KB |
Output isn't correct |
25 |
Incorrect |
23 ms |
2640 KB |
Output isn't correct |
26 |
Incorrect |
27 ms |
2640 KB |
Output isn't correct |
27 |
Incorrect |
28 ms |
2640 KB |
Output isn't correct |
28 |
Incorrect |
27 ms |
2640 KB |
Output isn't correct |
29 |
Incorrect |
28 ms |
2640 KB |
Output isn't correct |
30 |
Runtime error |
25 ms |
2844 KB |
Execution failed because the return code was nonzero |
31 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
32 |
Runtime error |
1 ms |
2384 KB |
Execution failed because the return code was nonzero |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
15 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
16 |
Incorrect |
4 ms |
2384 KB |
Output isn't correct |
17 |
Incorrect |
4 ms |
2384 KB |
Output isn't correct |
18 |
Incorrect |
4 ms |
2384 KB |
Output isn't correct |
19 |
Incorrect |
4 ms |
2384 KB |
Output isn't correct |
20 |
Incorrect |
3 ms |
2384 KB |
Output isn't correct |
21 |
Incorrect |
13 ms |
2812 KB |
Output isn't correct |
22 |
Incorrect |
18 ms |
2640 KB |
Output isn't correct |
23 |
Incorrect |
22 ms |
2640 KB |
Output isn't correct |
24 |
Incorrect |
15 ms |
2688 KB |
Output isn't correct |
25 |
Incorrect |
10 ms |
2652 KB |
Output isn't correct |
26 |
Incorrect |
12 ms |
2640 KB |
Output isn't correct |
27 |
Incorrect |
12 ms |
2784 KB |
Output isn't correct |
28 |
Incorrect |
12 ms |
2640 KB |
Output isn't correct |
29 |
Incorrect |
12 ms |
2640 KB |
Output isn't correct |
30 |
Incorrect |
8 ms |
2640 KB |
Output isn't correct |
31 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
32 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |