Submission #953930

# Submission time Handle Problem Language Result Execution time Memory
953930 2024-03-26T22:21:36 Z 4QT0R Gap (APIO16_gap) C++17
0 / 100
31 ms 2868 KB
#include <bits/stdc++.h>
#include "gap.h"
using namespace std;
#define ll long long

ll findGap(int T, int n){
	ll L,P;
	MinMax(0,1e18,&L,&P);
	ll ans=0,x,y;
	while(true){
		MinMax(L+1,P-1,&x,&y);
		if (x==-1){
			ans=max(ans,P-L);
			return ans;
		}
		else ans=max({ans,x-L,P-y});
		L=x;
		P=y;
	}
	return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 600 KB Output isn't correct
2 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
3 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
4 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
5 Runtime error 0 ms 2404 KB Execution failed because the return code was nonzero
6 Incorrect 1 ms 2392 KB Output isn't correct
7 Incorrect 1 ms 2392 KB Output isn't correct
8 Incorrect 1 ms 2392 KB Output isn't correct
9 Incorrect 1 ms 2392 KB Output isn't correct
10 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
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 2584 KB Output isn't correct
17 Incorrect 7 ms 2584 KB Output isn't correct
18 Incorrect 8 ms 2588 KB Output isn't correct
19 Incorrect 7 ms 2584 KB Output isn't correct
20 Runtime error 6 ms 2572 KB Execution failed because the return code was nonzero
21 Incorrect 28 ms 2868 KB Output isn't correct
22 Incorrect 27 ms 2852 KB Output isn't correct
23 Incorrect 31 ms 2860 KB Output isn't correct
24 Incorrect 29 ms 2856 KB Output isn't correct
25 Incorrect 28 ms 2864 KB Output isn't correct
26 Incorrect 27 ms 2856 KB Output isn't correct
27 Incorrect 30 ms 2860 KB Output isn't correct
28 Incorrect 28 ms 2856 KB Output isn't correct
29 Incorrect 27 ms 2860 KB Output isn't correct
30 Runtime error 22 ms 2848 KB Execution failed because the return code was nonzero
31 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
32 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
2 Runtime error 0 ms 2392 KB Execution failed because the return code was nonzero
3 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
4 Runtime error 0 ms 2392 KB Execution failed because the return code was nonzero
5 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
6 Partially correct 1 ms 2392 KB Partially correct
7 Partially correct 1 ms 2392 KB Partially correct
8 Partially correct 1 ms 2392 KB Partially correct
9 Partially correct 1 ms 2392 KB Partially correct
10 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
11 Partially correct 1 ms 2392 KB Partially correct
12 Partially correct 1 ms 2392 KB Partially correct
13 Partially correct 1 ms 2392 KB Partially correct
14 Partially correct 1 ms 2392 KB Partially correct
15 Partially correct 1 ms 2392 KB Partially correct
16 Partially correct 7 ms 2756 KB Partially correct
17 Partially correct 7 ms 2580 KB Partially correct
18 Partially correct 7 ms 2580 KB Partially correct
19 Partially correct 7 ms 2560 KB Partially correct
20 Runtime error 6 ms 2572 KB Execution failed because the return code was nonzero
21 Incorrect 28 ms 2860 KB Expected int32, but "2500100001" found
22 Incorrect 27 ms 2860 KB Expected int32, but "2500100001" found
23 Incorrect 28 ms 2852 KB Expected int32, but "2500100001" found
24 Incorrect 27 ms 2856 KB Expected int32, but "2500100001" found
25 Incorrect 24 ms 2848 KB Expected int32, but "2500100001" found
26 Incorrect 28 ms 2868 KB Expected int32, but "2500100001" found
27 Incorrect 28 ms 2860 KB Expected int32, but "2500100001" found
28 Incorrect 28 ms 2860 KB Expected int32, but "2500100001" found
29 Incorrect 28 ms 2864 KB Expected int32, but "2500100001" found
30 Runtime error 22 ms 2844 KB Execution failed because the return code was nonzero
31 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero
32 Runtime error 1 ms 2392 KB Execution failed because the return code was nonzero