Submission #1100306

# Submission time Handle Problem Language Result Execution time Memory
1100306 2024-10-13T13:23:58 Z adkjt Gap (APIO16_gap) C++14
0 / 100
2000 ms 2972 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;
        while(pl!=pr){
            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 Execution timed out 3062 ms 336 KB Time limit exceeded
2 Execution timed out 3056 ms 2384 KB Time limit exceeded
3 Execution timed out 3067 ms 2384 KB Time limit exceeded
4 Execution timed out 3049 ms 2384 KB Time limit exceeded
5 Execution timed out 3061 ms 2384 KB Time limit exceeded
6 Execution timed out 3068 ms 2384 KB Time limit exceeded
7 Execution timed out 3059 ms 2384 KB Time limit exceeded
8 Execution timed out 3060 ms 2384 KB Time limit exceeded
9 Execution timed out 3068 ms 2384 KB Time limit exceeded
10 Execution timed out 3077 ms 2384 KB Time limit exceeded
11 Execution timed out 3051 ms 2384 KB Time limit exceeded
12 Execution timed out 3058 ms 2384 KB Time limit exceeded
13 Execution timed out 3054 ms 2384 KB Time limit exceeded
14 Execution timed out 3067 ms 2384 KB Time limit exceeded
15 Execution timed out 3062 ms 2384 KB Time limit exceeded
16 Execution timed out 3076 ms 2384 KB Time limit exceeded
17 Execution timed out 3068 ms 2384 KB Time limit exceeded
18 Execution timed out 3043 ms 2384 KB Time limit exceeded
19 Execution timed out 3059 ms 2384 KB Time limit exceeded
20 Execution timed out 3069 ms 2384 KB Time limit exceeded
21 Execution timed out 3066 ms 2640 KB Time limit exceeded
22 Execution timed out 3052 ms 2640 KB Time limit exceeded
23 Execution timed out 3065 ms 2640 KB Time limit exceeded
24 Execution timed out 3063 ms 2744 KB Time limit exceeded
25 Execution timed out 3057 ms 2640 KB Time limit exceeded
26 Execution timed out 3044 ms 2640 KB Time limit exceeded
27 Execution timed out 3074 ms 2668 KB Time limit exceeded
28 Execution timed out 3054 ms 2640 KB Time limit exceeded
29 Execution timed out 3061 ms 2664 KB Time limit exceeded
30 Execution timed out 3058 ms 2640 KB Time limit exceeded
31 Execution timed out 3067 ms 2384 KB Time limit exceeded
32 Execution timed out 3055 ms 2384 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 2384 KB Output isn't correct
2 Incorrect 1 ms 2552 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 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 2 ms 2384 KB Output isn't correct
21 Incorrect 12 ms 2748 KB Output isn't correct
22 Incorrect 12 ms 2640 KB Output isn't correct
23 Incorrect 12 ms 2728 KB Output isn't correct
24 Incorrect 12 ms 2640 KB Output isn't correct
25 Incorrect 10 ms 2640 KB Output isn't correct
26 Incorrect 13 ms 2640 KB Output isn't correct
27 Incorrect 13 ms 2640 KB Output isn't correct
28 Incorrect 22 ms 2640 KB Output isn't correct
29 Incorrect 13 ms 2972 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