# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1100315 |
2024-10-13T13:35:11 Z |
adkjt |
Gap (APIO16_gap) |
C++14 |
|
31 ms |
2872 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/2;i++){
MinMax(l,r,&pl,&pr);
mx=max({mx,pl-l,r-pr});
l=pl,r=pr;
}
}
return mx;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
336 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 |
2 ms |
2384 KB |
Output isn't correct |
15 |
Incorrect |
1 ms |
2384 KB |
Output isn't correct |
16 |
Incorrect |
5 ms |
2384 KB |
Output isn't correct |
17 |
Incorrect |
5 ms |
2384 KB |
Output isn't correct |
18 |
Incorrect |
6 ms |
2384 KB |
Output isn't correct |
19 |
Incorrect |
5 ms |
2384 KB |
Output isn't correct |
20 |
Incorrect |
4 ms |
2384 KB |
Output isn't correct |
21 |
Incorrect |
19 ms |
2640 KB |
Output isn't correct |
22 |
Incorrect |
19 ms |
2640 KB |
Output isn't correct |
23 |
Incorrect |
19 ms |
2640 KB |
Output isn't correct |
24 |
Incorrect |
20 ms |
2872 KB |
Output isn't correct |
25 |
Incorrect |
16 ms |
2640 KB |
Output isn't correct |
26 |
Incorrect |
21 ms |
2640 KB |
Output isn't correct |
27 |
Incorrect |
19 ms |
2640 KB |
Output isn't correct |
28 |
Incorrect |
19 ms |
2640 KB |
Output isn't correct |
29 |
Incorrect |
31 ms |
2640 KB |
Output isn't correct |
30 |
Incorrect |
15 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 |
# |
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 |
2552 KB |
Output isn't correct |
17 |
Incorrect |
5 ms |
2384 KB |
Output isn't correct |
18 |
Incorrect |
4 ms |
2384 KB |
Output isn't correct |
19 |
Incorrect |
5 ms |
2384 KB |
Output isn't correct |
20 |
Incorrect |
2 ms |
2384 KB |
Output isn't correct |
21 |
Incorrect |
21 ms |
2640 KB |
Output isn't correct |
22 |
Incorrect |
19 ms |
2640 KB |
Output isn't correct |
23 |
Incorrect |
12 ms |
2788 KB |
Output isn't correct |
24 |
Incorrect |
13 ms |
2640 KB |
Output isn't correct |
25 |
Incorrect |
19 ms |
2688 KB |
Output isn't correct |
26 |
Incorrect |
16 ms |
2640 KB |
Output isn't correct |
27 |
Incorrect |
13 ms |
2640 KB |
Output isn't correct |
28 |
Incorrect |
13 ms |
2800 KB |
Output isn't correct |
29 |
Incorrect |
13 ms |
2652 KB |
Output isn't correct |
30 |
Incorrect |
15 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 |