답안 #95598

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
95598 2019-02-02T06:24:23 Z jeff Gap (APIO16_gap) C++14
0 / 100
60 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 = 0, 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 - 1;
        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 376 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 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 Incorrect 2 ms 376 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 3 ms 376 KB Output isn't correct
16 Runtime error 8 ms 504 KB Execution failed because the return code was nonzero
17 Runtime error 8 ms 508 KB Execution failed because the return code was nonzero
18 Runtime error 8 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 9 ms 576 KB Output isn't correct
21 Runtime error 25 ms 1144 KB Execution failed because the return code was nonzero
22 Runtime error 26 ms 1144 KB Execution failed because the return code was nonzero
23 Runtime error 25 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 Incorrect 60 ms 1164 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 25 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 Incorrect 35 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 Incorrect 2 ms 376 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 Correct 2 ms 376 KB Output is 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 Correct 2 ms 376 KB Output is 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 3 ms 376 KB Execution failed because the return code was nonzero
15 Correct 3 ms 376 KB Output is correct
16 Runtime error 8 ms 504 KB Execution failed because the return code was nonzero
17 Runtime error 8 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 7 ms 504 KB Execution failed because the return code was nonzero
20 Correct 8 ms 504 KB Output is correct
21 Runtime error 24 ms 1144 KB Execution failed because the return code was nonzero
22 Runtime error 25 ms 1236 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 1144 KB Execution failed because the return code was nonzero
25 Correct 59 ms 1272 KB Output is correct
26 Runtime error 24 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 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 Correct 34 ms 1144 KB Output is 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