답안 #946248

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
946248 2024-03-14T13:02:04 Z simona1230 Gap (APIO16_gap) C++17
0 / 100
39 ms 3588 KB
#include <bits/stdc++.h>
#include "gap.h"
using namespace std;

long long a[200001];

long long findGap(int t,int n)
{
    long long int minn,maxx,ans=0;
    for(int i=1;i<=n;i++)
    {
        MinMax(a[i-1]+1,1e18,&minn,&maxx);
        a[i]=minn;
        //cout<<a[i]<<" "<<a[i-1]<<endl;
        if(i>1)ans=max(ans,a[i]-a[i-1]);
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Incorrect 1 ms 2392 KB Output isn't correct
3 Incorrect 1 ms 2392 KB Output isn't correct
4 Incorrect 0 ms 2392 KB Output isn't correct
5 Incorrect 1 ms 2392 KB Output isn't correct
6 Incorrect 1 ms 2392 KB Output isn't correct
7 Incorrect 0 ms 2392 KB Output isn't correct
8 Incorrect 1 ms 2392 KB Output isn't correct
9 Incorrect 1 ms 2392 KB Output isn't correct
10 Incorrect 1 ms 2392 KB Output isn't correct
11 Incorrect 1 ms 2392 KB Output isn't correct
12 Incorrect 1 ms 2644 KB Output isn't correct
13 Incorrect 1 ms 2392 KB Output isn't correct
14 Incorrect 1 ms 2392 KB Output isn't correct
15 Incorrect 1 ms 2392 KB Output isn't correct
16 Incorrect 8 ms 2548 KB Output isn't correct
17 Incorrect 8 ms 2540 KB Output isn't correct
18 Incorrect 8 ms 2540 KB Output isn't correct
19 Incorrect 8 ms 2540 KB Output isn't correct
20 Incorrect 6 ms 2704 KB Output isn't correct
21 Incorrect 34 ms 3352 KB Output isn't correct
22 Incorrect 34 ms 3420 KB Output isn't correct
23 Incorrect 34 ms 3460 KB Output isn't correct
24 Incorrect 34 ms 3452 KB Output isn't correct
25 Incorrect 31 ms 3444 KB Output isn't correct
26 Incorrect 34 ms 3432 KB Output isn't correct
27 Incorrect 34 ms 3452 KB Output isn't correct
28 Incorrect 39 ms 3436 KB Output isn't correct
29 Incorrect 34 ms 3396 KB Output isn't correct
30 Incorrect 28 ms 3440 KB Output isn't correct
31 Incorrect 1 ms 2392 KB Output isn't correct
32 Incorrect 1 ms 2448 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 2392 KB Output is correct
2 Partially correct 0 ms 2392 KB Partially correct
3 Partially correct 1 ms 2644 KB Partially correct
4 Partially correct 0 ms 2392 KB Partially correct
5 Partially correct 1 ms 2392 KB Partially correct
6 Partially correct 0 ms 2392 KB Partially correct
7 Partially correct 0 ms 2392 KB Partially correct
8 Partially correct 1 ms 2392 KB Partially correct
9 Partially correct 1 ms 2392 KB Partially correct
10 Partially correct 1 ms 2484 KB Partially correct
11 Partially correct 1 ms 2752 KB Partially correct
12 Partially correct 1 ms 2392 KB Partially correct
13 Partially correct 1 ms 2392 KB Partially correct
14 Partially correct 1 ms 2392 KB Partially correct
15 Partially correct 1 ms 2392 KB Partially correct
16 Partially correct 8 ms 2544 KB Partially correct
17 Partially correct 8 ms 2544 KB Partially correct
18 Partially correct 8 ms 2544 KB Partially correct
19 Partially correct 8 ms 2792 KB Partially correct
20 Partially correct 7 ms 2540 KB Partially correct
21 Incorrect 34 ms 3340 KB Expected int32, but "5000150000" found
22 Incorrect 34 ms 3452 KB Expected int32, but "5000150000" found
23 Incorrect 34 ms 3396 KB Expected int32, but "5000150000" found
24 Incorrect 34 ms 3448 KB Expected int32, but "5000150000" found
25 Incorrect 32 ms 3360 KB Expected int32, but "5000150000" found
26 Incorrect 34 ms 3448 KB Expected int32, but "5000150000" found
27 Incorrect 34 ms 3588 KB Expected int32, but "5000150000" found
28 Incorrect 34 ms 3444 KB Expected int32, but "5000150000" found
29 Incorrect 34 ms 3444 KB Expected int32, but "5000150000" found
30 Incorrect 30 ms 3436 KB Expected int32, but "5000150000" found
31 Partially correct 1 ms 2392 KB Partially correct
32 Partially correct 1 ms 2392 KB Partially correct