답안 #95600

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
95600 2019-02-02T06:26:13 Z jeff Gap (APIO16_gap) C++14
0 / 100
62 ms 1272 KB
#include <bits/stdc++.h>
#include "gap.h"
using namespace std;

long long findGap(int T, int N) {
    long long l, r, y, z, ls = -1, rs = 0, a, b, i;
    MinMax(0, 1000000000000000000, &y, &z);
    for (i = 0; i < N; ++i) {
        a = y + i * (z - y) / N;
        b = y + (i + 1) * (z - y) / N;
        if (a == b) continue;
        MinMax(a, b, &l, &r);
        if (l < 0 && r < 0) continue;
        if (ls > -1) rs = max(rs, l - ls);
        ls = r;
    }
	return rs;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
3 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
4 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
5 Incorrect 2 ms 376 KB Output isn't correct
6 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
7 Runtime error 3 ms 376 KB Execution failed because the return code was nonzero
8 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
9 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
10 Incorrect 2 ms 256 KB Output isn't correct
11 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
12 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
13 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
14 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
15 Incorrect 2 ms 376 KB Output isn't correct
16 Runtime error 7 ms 552 KB Execution failed because the return code was nonzero
17 Runtime error 7 ms 504 KB Execution failed because the return code was nonzero
18 Runtime error 7 ms 504 KB Execution failed because the return code was nonzero
19 Runtime error 8 ms 504 KB Execution failed because the return code was nonzero
20 Incorrect 8 ms 504 KB Output isn't correct
21 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
22 Runtime error 24 ms 1116 KB Execution failed because the return code was nonzero
23 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
24 Runtime error 24 ms 1148 KB Execution failed because the return code was nonzero
25 Incorrect 62 ms 1272 KB Output isn't correct
26 Runtime error 25 ms 1144 KB Execution failed because the return code was nonzero
27 Runtime error 25 ms 1144 KB Execution failed because the return code was nonzero
28 Runtime error 26 ms 1144 KB Execution failed because the return code was nonzero
29 Runtime error 27 ms 1144 KB Execution failed because the return code was nonzero
30 Incorrect 34 ms 1144 KB Output isn't correct
31 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
32 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
# 결과 실행 시간 메모리 Grader output
1 Partially correct 2 ms 376 KB Partially correct
2 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
3 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
4 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
5 Partially correct 2 ms 376 KB Partially correct
6 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
7 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
8 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
9 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
10 Partially correct 2 ms 376 KB Partially correct
11 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
12 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
13 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
14 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
15 Partially correct 3 ms 376 KB Partially correct
16 Runtime error 7 ms 504 KB Execution failed because the return code was nonzero
17 Runtime error 7 ms 504 KB Execution failed because the return code was nonzero
18 Runtime error 8 ms 508 KB Execution failed because the return code was nonzero
19 Runtime error 8 ms 504 KB Execution failed because the return code was nonzero
20 Partially correct 9 ms 616 KB Partially correct
21 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
22 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
23 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
24 Runtime error 25 ms 1144 KB Execution failed because the return code was nonzero
25 Partially correct 62 ms 1192 KB Partially correct
26 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
27 Runtime error 23 ms 1144 KB Execution failed because the return code was nonzero
28 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
29 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
30 Partially correct 33 ms 1272 KB Partially correct
31 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero
32 Runtime error 2 ms 376 KB Execution failed because the return code was nonzero