답안 #95606

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
95606 2019-02-02T06:32:02 Z jeff Gap (APIO16_gap) C++14
0 / 100
63 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 376 KB Output isn't correct
2 Incorrect 2 ms 376 KB Output isn't correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Incorrect 2 ms 376 KB Output isn't correct
5 Incorrect 2 ms 376 KB Output isn't correct
6 Incorrect 2 ms 376 KB Output isn't correct
7 Incorrect 2 ms 376 KB Output isn't correct
8 Incorrect 2 ms 376 KB Output isn't correct
9 Incorrect 2 ms 376 KB Output isn't correct
10 Incorrect 2 ms 376 KB Output isn't correct
11 Incorrect 2 ms 380 KB Output isn't correct
12 Incorrect 2 ms 376 KB Output isn't correct
13 Incorrect 2 ms 376 KB Output isn't correct
14 Incorrect 2 ms 376 KB Output isn't correct
15 Incorrect 3 ms 376 KB Output isn't correct
16 Incorrect 11 ms 504 KB Output isn't correct
17 Incorrect 11 ms 504 KB Output isn't correct
18 Incorrect 11 ms 504 KB Output isn't correct
19 Incorrect 13 ms 504 KB Output isn't correct
20 Incorrect 9 ms 504 KB Output isn't correct
21 Incorrect 41 ms 1144 KB Output isn't correct
22 Incorrect 42 ms 1144 KB Output isn't correct
23 Incorrect 43 ms 1144 KB Output isn't correct
24 Incorrect 42 ms 1196 KB Output isn't correct
25 Incorrect 62 ms 1144 KB Output isn't correct
26 Incorrect 42 ms 1144 KB Output isn't correct
27 Incorrect 41 ms 1144 KB Output isn't correct
28 Incorrect 42 ms 1144 KB Output isn't correct
29 Incorrect 41 ms 1144 KB Output isn't correct
30 Incorrect 36 ms 1172 KB Output isn't correct
31 Incorrect 2 ms 376 KB Output isn't correct
32 Incorrect 2 ms 376 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Partially correct 2 ms 256 KB Partially correct
2 Correct 2 ms 376 KB Output is correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Incorrect 2 ms 376 KB Output isn't correct
5 Partially correct 2 ms 376 KB Partially correct
6 Incorrect 3 ms 376 KB Output isn't correct
7 Incorrect 2 ms 376 KB Output isn't correct
8 Incorrect 2 ms 376 KB Output isn't correct
9 Incorrect 2 ms 376 KB Output isn't correct
10 Partially correct 2 ms 376 KB Partially correct
11 Incorrect 2 ms 376 KB Output isn't correct
12 Incorrect 2 ms 376 KB Output isn't correct
13 Incorrect 2 ms 376 KB Output isn't correct
14 Incorrect 2 ms 376 KB Output isn't correct
15 Partially correct 3 ms 376 KB Partially correct
16 Incorrect 11 ms 504 KB Output isn't correct
17 Incorrect 11 ms 504 KB Output isn't correct
18 Incorrect 11 ms 500 KB Output isn't correct
19 Incorrect 11 ms 504 KB Output isn't correct
20 Partially correct 9 ms 504 KB Partially correct
21 Incorrect 41 ms 1144 KB Output isn't correct
22 Incorrect 41 ms 1144 KB Output isn't correct
23 Incorrect 41 ms 1144 KB Output isn't correct
24 Incorrect 44 ms 1272 KB Output isn't correct
25 Partially correct 63 ms 1144 KB Partially correct
26 Incorrect 41 ms 1144 KB Output isn't correct
27 Incorrect 42 ms 1144 KB Output isn't correct
28 Incorrect 41 ms 1144 KB Output isn't correct
29 Incorrect 42 ms 1144 KB Output isn't correct
30 Partially correct 34 ms 1144 KB Partially correct
31 Incorrect 2 ms 348 KB Output isn't correct
32 Incorrect 2 ms 376 KB Output isn't correct