답안 #23019

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
23019 2017-05-01T20:37:41 Z arman_ferdous Gap (APIO16_gap) C++14
0 / 100
56 ms 4900 KB
const long long MAXN = 1e18;
void MinMax(long long , long long , long long *, long long *);
long long findGap(int T, int N)
{
    long long aray[N], i = 0, j = N-1, lo = 0, hi = MAXN;
    while(j-i >= 1)
    {
        long long x, y;
        MinMax(lo,hi,&x,&y);
        aray[i] = x, aray[j] = y;
        i++, j--;
    }

    long long res = -1;
    for(int i = 0; i+1 < N; i++)
        res = (res < aray[i+1]-aray[i] ? aray[i+1]-aray[i] : res);
    return res;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 4240 KB Output is correct
2 Incorrect 0 ms 4240 KB Output isn't correct
3 Incorrect 0 ms 4240 KB Output isn't correct
4 Incorrect 0 ms 4240 KB Output isn't correct
5 Incorrect 0 ms 4240 KB Output isn't correct
6 Incorrect 0 ms 4240 KB Output isn't correct
7 Incorrect 0 ms 4240 KB Output isn't correct
8 Incorrect 0 ms 4240 KB Output isn't correct
9 Incorrect 0 ms 4240 KB Output isn't correct
10 Incorrect 0 ms 4240 KB Output isn't correct
11 Incorrect 0 ms 4240 KB Output isn't correct
12 Incorrect 0 ms 4240 KB Output isn't correct
13 Incorrect 0 ms 4240 KB Output isn't correct
14 Incorrect 0 ms 4240 KB Output isn't correct
15 Incorrect 0 ms 4240 KB Output isn't correct
16 Incorrect 9 ms 4312 KB Output isn't correct
17 Incorrect 9 ms 4312 KB Output isn't correct
18 Incorrect 6 ms 4312 KB Output isn't correct
19 Incorrect 6 ms 4308 KB Output isn't correct
20 Incorrect 3 ms 4308 KB Output isn't correct
21 Incorrect 36 ms 4892 KB Output isn't correct
22 Incorrect 33 ms 4896 KB Output isn't correct
23 Incorrect 56 ms 4892 KB Output isn't correct
24 Incorrect 36 ms 4892 KB Output isn't correct
25 Incorrect 26 ms 4896 KB Output isn't correct
26 Incorrect 33 ms 4896 KB Output isn't correct
27 Incorrect 36 ms 4892 KB Output isn't correct
28 Incorrect 33 ms 4896 KB Output isn't correct
29 Incorrect 33 ms 4900 KB Output isn't correct
30 Incorrect 19 ms 4892 KB Output isn't correct
31 Incorrect 0 ms 4240 KB Output isn't correct
32 Incorrect 0 ms 4240 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 4240 KB Output is correct
2 Incorrect 0 ms 4240 KB Output isn't correct
3 Incorrect 0 ms 4240 KB Output isn't correct
4 Incorrect 0 ms 4240 KB Output isn't correct
5 Incorrect 0 ms 4240 KB Output isn't correct
6 Incorrect 0 ms 4240 KB Output isn't correct
7 Incorrect 0 ms 4240 KB Output isn't correct
8 Incorrect 0 ms 4240 KB Output isn't correct
9 Incorrect 0 ms 4240 KB Output isn't correct
10 Incorrect 0 ms 4240 KB Output isn't correct
11 Incorrect 0 ms 4240 KB Output isn't correct
12 Incorrect 0 ms 4240 KB Output isn't correct
13 Incorrect 0 ms 4240 KB Output isn't correct
14 Incorrect 0 ms 4240 KB Output isn't correct
15 Incorrect 0 ms 4240 KB Output isn't correct
16 Incorrect 6 ms 4312 KB Output isn't correct
17 Incorrect 3 ms 4312 KB Output isn't correct
18 Incorrect 9 ms 4312 KB Output isn't correct
19 Incorrect 3 ms 4312 KB Output isn't correct
20 Incorrect 3 ms 4312 KB Output isn't correct
21 Incorrect 43 ms 4896 KB Expected int32, but "5000050000" found
22 Incorrect 36 ms 4896 KB Expected int32, but "5000050000" found
23 Incorrect 39 ms 4900 KB Expected int32, but "5000050000" found
24 Incorrect 36 ms 4900 KB Expected int32, but "5000050000" found
25 Incorrect 26 ms 4900 KB Expected int32, but "5000050000" found
26 Incorrect 36 ms 4896 KB Expected int32, but "5000050000" found
27 Incorrect 43 ms 4896 KB Expected int32, but "5000050000" found
28 Incorrect 33 ms 4892 KB Expected int32, but "5000050000" found
29 Incorrect 39 ms 4896 KB Expected int32, but "5000050000" found
30 Incorrect 26 ms 4892 KB Expected int32, but "5000050000" found
31 Incorrect 0 ms 4240 KB Output isn't correct
32 Incorrect 0 ms 4240 KB Output isn't correct