Submission #970805

# Submission time Handle Problem Language Result Execution time Memory
970805 2024-04-27T10:03:10 Z vjudge1 Gap (APIO16_gap) C++14
13.5065 / 100
75 ms 3364 KB
#include "gap.h"

#include <bits/stdc++.h>

using namespace std;

#define int long long

int dnc(int l, int r){
   if (l==r) return 0;
   int mid=(l+r)>>1;
   int l1, r1, l2, r2;
   MinMax(l, mid, &l1, &r1);
   MinMax(mid+1, r, &l2, &r2);
   return max({l2-r1, dnc(l1, r1), dnc(l2, r2)});
}

long long findGap(int32_t T, int32_t N)
{
   int l, r;
   MinMax(0, 1e18, &l, &r);
	return dnc(l, r);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Incorrect 1 ms 2392 KB Output isn't correct
3 Incorrect 1 ms 2648 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 1 ms 2388 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 Incorrect 1 ms 2392 KB Output isn't correct
11 Incorrect 1 ms 2392 KB Output isn't correct
12 Incorrect 2 ms 2392 KB Output isn't correct
13 Incorrect 1 ms 2392 KB Output isn't correct
14 Incorrect 2 ms 2392 KB Output isn't correct
15 Incorrect 1 ms 2392 KB Output isn't correct
16 Incorrect 16 ms 2752 KB Output isn't correct
17 Incorrect 17 ms 2588 KB Output isn't correct
18 Incorrect 17 ms 2588 KB Output isn't correct
19 Incorrect 17 ms 2584 KB Output isn't correct
20 Incorrect 15 ms 2568 KB Output isn't correct
21 Incorrect 67 ms 3024 KB Output isn't correct
22 Incorrect 67 ms 2856 KB Output isn't correct
23 Incorrect 71 ms 3364 KB Output isn't correct
24 Incorrect 68 ms 2764 KB Output isn't correct
25 Incorrect 63 ms 3108 KB Output isn't correct
26 Incorrect 66 ms 2852 KB Output isn't correct
27 Incorrect 70 ms 3096 KB Output isn't correct
28 Incorrect 75 ms 2864 KB Output isn't correct
29 Incorrect 66 ms 3012 KB Output isn't correct
30 Incorrect 61 ms 2856 KB Output isn't correct
31 Incorrect 1 ms 2392 KB Output isn't correct
32 Incorrect 1 ms 2392 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 2392 KB Partially correct
2 Partially correct 0 ms 2392 KB Partially correct
3 Partially correct 1 ms 2392 KB Partially correct
4 Partially correct 1 ms 2392 KB Partially correct
5 Partially correct 0 ms 2392 KB Partially 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 Partially correct 1 ms 2392 KB Partially correct
11 Partially correct 1 ms 2392 KB Partially correct
12 Partially correct 1 ms 2392 KB Partially correct
13 Partially correct 2 ms 2392 KB Partially correct
14 Partially correct 2 ms 2392 KB Partially correct
15 Partially correct 1 ms 2392 KB Partially correct
16 Partially correct 17 ms 2592 KB Partially correct
17 Partially correct 16 ms 2584 KB Partially correct
18 Partially correct 17 ms 2592 KB Partially correct
19 Partially correct 16 ms 2580 KB Partially correct
20 Partially correct 15 ms 2576 KB Partially correct
21 Partially correct 74 ms 2856 KB Partially correct
22 Partially correct 69 ms 3008 KB Partially correct
23 Partially correct 66 ms 2888 KB Partially correct
24 Partially correct 66 ms 2856 KB Partially correct
25 Partially correct 65 ms 2856 KB Partially correct
26 Partially correct 68 ms 2852 KB Partially correct
27 Partially correct 66 ms 2860 KB Partially correct
28 Partially correct 66 ms 2860 KB Partially correct
29 Partially correct 69 ms 3092 KB Partially correct
30 Partially correct 62 ms 2856 KB Partially correct
31 Partially correct 1 ms 2388 KB Partially correct
32 Partially correct 1 ms 2392 KB Partially correct