답안 #101364

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
101364 2019-03-18T17:25:52 Z shafinalam Gap (APIO16_gap) C++14
0 / 100
46 ms 2252 KB
#include <bits/stdc++.h>
#include "gap.h"
using namespace std;

typedef long long ll;
const int lim = 4e5+5;
#define  sf scanf
#define  pf printf

#define  inf 1e18
ll arr[lim];

ll findGap(int T, int N)
{
    ll s = 0, t = inf, mn, mx;
    int l = 1, r = N;

    while(l<=r)
    {
        MinMax(s, t, &mn, &mx);
        arr[l++] = mn;
        arr[r--] = mx;
        l = mn+1;
        r = mx-1;
    }
    ll ans = 0;
    for(int i = 2; i <= N; i++) max(ans, arr[i]-arr[i-1]);
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 384 KB Output isn't correct
2 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
3 Incorrect 2 ms 384 KB Output isn't correct
4 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
5 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Incorrect 2 ms 384 KB Output isn't correct
7 Incorrect 3 ms 384 KB Output isn't correct
8 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
9 Incorrect 3 ms 384 KB Output isn't correct
10 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Incorrect 4 ms 384 KB Output isn't correct
12 Incorrect 4 ms 384 KB Output isn't correct
13 Incorrect 3 ms 384 KB Output isn't correct
14 Runtime error 4 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Incorrect 3 ms 384 KB Output isn't correct
16 Runtime error 11 ms 896 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Incorrect 9 ms 512 KB Output isn't correct
18 Runtime error 11 ms 896 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Incorrect 9 ms 512 KB Output isn't correct
20 Runtime error 8 ms 896 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Incorrect 28 ms 1144 KB Output isn't correct
22 Incorrect 29 ms 1152 KB Output isn't correct
23 Incorrect 28 ms 1152 KB Output isn't correct
24 Incorrect 28 ms 1144 KB Output isn't correct
25 Incorrect 32 ms 1188 KB Output isn't correct
26 Incorrect 30 ms 1220 KB Output isn't correct
27 Runtime error 29 ms 2040 KB Execution killed with signal 11 (could be triggered by violating memory limits)
28 Runtime error 31 ms 2176 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Runtime error 27 ms 1988 KB Execution killed with signal 11 (could be triggered by violating memory limits)
30 Runtime error 16 ms 2144 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Incorrect 2 ms 384 KB Output isn't correct
32 Incorrect 2 ms 384 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 428 KB Output isn't correct
2 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
3 Runtime error 3 ms 612 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Incorrect 2 ms 384 KB Output isn't correct
5 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Incorrect 3 ms 384 KB Output isn't correct
7 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Incorrect 3 ms 384 KB Output isn't correct
9 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Runtime error 3 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Runtime error 4 ms 640 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Incorrect 3 ms 384 KB Output isn't correct
13 Incorrect 3 ms 384 KB Output isn't correct
14 Runtime error 4 ms 512 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Incorrect 2 ms 384 KB Output isn't correct
16 Incorrect 8 ms 512 KB Output isn't correct
17 Incorrect 9 ms 484 KB Output isn't correct
18 Incorrect 8 ms 512 KB Output isn't correct
19 Runtime error 10 ms 896 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 8 ms 896 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Runtime error 32 ms 2172 KB Execution killed with signal 11 (could be triggered by violating memory limits)
22 Runtime error 36 ms 2040 KB Execution killed with signal 11 (could be triggered by violating memory limits)
23 Runtime error 32 ms 2168 KB Execution killed with signal 11 (could be triggered by violating memory limits)
24 Runtime error 46 ms 2168 KB Execution killed with signal 11 (could be triggered by violating memory limits)
25 Incorrect 29 ms 1272 KB Output isn't correct
26 Runtime error 40 ms 2080 KB Execution killed with signal 11 (could be triggered by violating memory limits)
27 Incorrect 32 ms 1144 KB Output isn't correct
28 Runtime error 29 ms 2040 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Incorrect 35 ms 1144 KB Output isn't correct
30 Runtime error 19 ms 2252 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Incorrect 3 ms 384 KB Output isn't correct
32 Incorrect 3 ms 384 KB Output isn't correct