# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
875599 |
2023-11-20T06:51:23 Z |
NeroZein |
Gap (APIO16_gap) |
C++17 |
|
77 ms |
2864 KB |
#include "gap.h"
#include "bits/stdc++.h"
using namespace std;
long long solve(long long l, long long r) {
if (l == r) {
return 0;
}
long long mid = (l + r) / 2;
long long t, smaller, bigger;
MinMax(l, mid, &t, &smaller);
MinMax(mid, r, &bigger, &t);
if (smaller == bigger) {
return 0;
}
return max({bigger - smaller, solve(l, smaller), solve(bigger, r)});
}
long long findGap(int T, int N) {
long long mn, mx;
MinMax(0, LLONG_MAX, &mn, &mx);
return solve(mn, mx);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
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 |
Correct |
1 ms |
2392 KB |
Output is correct |
16 |
Incorrect |
18 ms |
2580 KB |
Output isn't correct |
17 |
Incorrect |
18 ms |
2588 KB |
Output isn't correct |
18 |
Incorrect |
18 ms |
2392 KB |
Output isn't correct |
19 |
Incorrect |
17 ms |
2584 KB |
Output isn't correct |
20 |
Incorrect |
2 ms |
2568 KB |
Output isn't correct |
21 |
Incorrect |
72 ms |
2852 KB |
Output isn't correct |
22 |
Incorrect |
69 ms |
2856 KB |
Output isn't correct |
23 |
Incorrect |
71 ms |
2852 KB |
Output isn't correct |
24 |
Incorrect |
70 ms |
2856 KB |
Output isn't correct |
25 |
Correct |
9 ms |
2856 KB |
Output is correct |
26 |
Incorrect |
69 ms |
2852 KB |
Output isn't correct |
27 |
Incorrect |
70 ms |
2860 KB |
Output isn't correct |
28 |
Incorrect |
69 ms |
2852 KB |
Output isn't correct |
29 |
Incorrect |
77 ms |
2856 KB |
Output isn't correct |
30 |
Incorrect |
8 ms |
2848 KB |
Output isn't correct |
31 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
32 |
Correct |
0 ms |
2392 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
2 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
3 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
4 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
5 |
Incorrect |
1 ms |
2640 KB |
Output isn't correct |
6 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
7 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
8 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
9 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
10 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
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 |
2388 KB |
Partially correct |
15 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
16 |
Partially correct |
20 ms |
2588 KB |
Partially correct |
17 |
Partially correct |
19 ms |
2580 KB |
Partially correct |
18 |
Partially correct |
19 ms |
2588 KB |
Partially correct |
19 |
Partially correct |
17 ms |
2584 KB |
Partially correct |
20 |
Incorrect |
2 ms |
2824 KB |
Output isn't correct |
21 |
Partially correct |
75 ms |
2848 KB |
Partially correct |
22 |
Partially correct |
69 ms |
2852 KB |
Partially correct |
23 |
Partially correct |
69 ms |
2852 KB |
Partially correct |
24 |
Partially correct |
73 ms |
2864 KB |
Partially correct |
25 |
Partially correct |
9 ms |
2852 KB |
Partially correct |
26 |
Partially correct |
76 ms |
2860 KB |
Partially correct |
27 |
Partially correct |
69 ms |
2864 KB |
Partially correct |
28 |
Partially correct |
69 ms |
2860 KB |
Partially correct |
29 |
Partially correct |
69 ms |
2848 KB |
Partially correct |
30 |
Incorrect |
7 ms |
2860 KB |
Output isn't correct |
31 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
32 |
Partially correct |
0 ms |
2392 KB |
Partially correct |