Submission #1100314

# Submission time Handle Problem Language Result Execution time Memory
1100314 2024-10-13T13:34:12 Z adkjt Gap (APIO16_gap) C++14
0 / 100
30 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+1)/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 0 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 2488 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 2 ms 2384 KB Output isn't correct
13 Incorrect 2 ms 2384 KB Output isn't correct
14 Incorrect 2 ms 2560 KB Output isn't correct
15 Incorrect 2 ms 2384 KB Output isn't correct
16 Incorrect 8 ms 2384 KB Output isn't correct
17 Incorrect 8 ms 2556 KB Output isn't correct
18 Incorrect 8 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 30 ms 2640 KB Output isn't correct
22 Incorrect 23 ms 2640 KB Output isn't correct
23 Incorrect 20 ms 2640 KB Output isn't correct
24 Incorrect 27 ms 2640 KB Output isn't correct
25 Incorrect 16 ms 2640 KB Output isn't correct
26 Incorrect 20 ms 2752 KB Output isn't correct
27 Incorrect 20 ms 2872 KB Output isn't correct
28 Incorrect 30 ms 2640 KB Output isn't correct
29 Incorrect 22 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 2552 KB Output isn't correct
16 Incorrect 6 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 23 ms 2816 KB Output isn't correct
22 Incorrect 14 ms 2640 KB Output isn't correct
23 Incorrect 23 ms 2640 KB Output isn't correct
24 Incorrect 14 ms 2640 KB Output isn't correct
25 Incorrect 18 ms 2640 KB Output isn't correct
26 Incorrect 14 ms 2640 KB Output isn't correct
27 Incorrect 18 ms 2640 KB Output isn't correct
28 Incorrect 16 ms 2640 KB Output isn't correct
29 Incorrect 22 ms 2736 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