답안 #1084437

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1084437 2024-09-06T08:46:33 Z MMihalev Gap (APIO16_gap) C++17
0 / 100
34 ms 1240 KB
#include<iostream>
#include<algorithm>
#include "gap.h"
using namespace std;
long long l=-10,r=1000000000000000010;
long long mn,mx;
int rem;
long long ans=1LL;
long long findGap(int T, int N)
{
    rem=N;
    while(rem>0)
    {
        MinMax(l+1,r-1,&mn,&mx);
        if(rem==2 && T==1)ans=max(ans,mx-mn);
        if(l<-1 && T==1)
        {
            ans=max(ans,mn-l);
            ans=max(ans,r-mx);
        }
        if(mn!=mx)rem-=2;
        else rem--;
        l=mn;
        r=mx;
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Incorrect 0 ms 344 KB Output isn't correct
3 Incorrect 0 ms 344 KB Output isn't correct
4 Incorrect 0 ms 344 KB Output isn't correct
5 Incorrect 0 ms 344 KB Output isn't correct
6 Incorrect 0 ms 344 KB Output isn't correct
7 Incorrect 0 ms 344 KB Output isn't correct
8 Incorrect 0 ms 344 KB Output isn't correct
9 Incorrect 0 ms 344 KB Output isn't correct
10 Incorrect 0 ms 344 KB Output isn't correct
11 Incorrect 0 ms 344 KB Output isn't correct
12 Incorrect 1 ms 344 KB Output isn't correct
13 Incorrect 1 ms 344 KB Output isn't correct
14 Incorrect 1 ms 344 KB Output isn't correct
15 Incorrect 0 ms 344 KB Output isn't correct
16 Incorrect 8 ms 564 KB Output isn't correct
17 Incorrect 6 ms 600 KB Output isn't correct
18 Incorrect 8 ms 600 KB Output isn't correct
19 Incorrect 6 ms 432 KB Output isn't correct
20 Incorrect 5 ms 600 KB Output isn't correct
21 Incorrect 31 ms 1216 KB Output isn't correct
22 Incorrect 27 ms 1112 KB Output isn't correct
23 Incorrect 25 ms 1112 KB Output isn't correct
24 Incorrect 25 ms 1240 KB Output isn't correct
25 Incorrect 24 ms 1112 KB Output isn't correct
26 Incorrect 25 ms 1112 KB Output isn't correct
27 Incorrect 25 ms 1112 KB Output isn't correct
28 Incorrect 25 ms 1112 KB Output isn't correct
29 Incorrect 25 ms 1108 KB Output isn't correct
30 Incorrect 20 ms 1112 KB Output isn't correct
31 Incorrect 0 ms 344 KB Output isn't correct
32 Incorrect 0 ms 344 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Incorrect 0 ms 344 KB Output isn't correct
3 Incorrect 0 ms 344 KB Output isn't correct
4 Incorrect 0 ms 344 KB Output isn't correct
5 Incorrect 0 ms 344 KB Output isn't correct
6 Incorrect 0 ms 344 KB Output isn't correct
7 Incorrect 0 ms 344 KB Output isn't correct
8 Incorrect 0 ms 344 KB Output isn't correct
9 Incorrect 0 ms 344 KB Output isn't correct
10 Incorrect 0 ms 344 KB Output isn't correct
11 Incorrect 1 ms 344 KB Output isn't correct
12 Incorrect 0 ms 344 KB Output isn't correct
13 Incorrect 1 ms 344 KB Output isn't correct
14 Incorrect 1 ms 344 KB Output isn't correct
15 Incorrect 1 ms 344 KB Output isn't correct
16 Incorrect 6 ms 600 KB Output isn't correct
17 Incorrect 6 ms 600 KB Output isn't correct
18 Incorrect 6 ms 600 KB Output isn't correct
19 Incorrect 6 ms 600 KB Output isn't correct
20 Incorrect 5 ms 648 KB Output isn't correct
21 Incorrect 25 ms 1112 KB Expected int32, but "2500100000" found
22 Incorrect 25 ms 1112 KB Expected int32, but "2500100000" found
23 Incorrect 25 ms 1112 KB Expected int32, but "2500100000" found
24 Incorrect 24 ms 1112 KB Expected int32, but "2500100000" found
25 Incorrect 23 ms 1212 KB Expected int32, but "2500100000" found
26 Incorrect 25 ms 1112 KB Expected int32, but "2500100000" found
27 Incorrect 33 ms 1112 KB Expected int32, but "2500100000" found
28 Incorrect 34 ms 1108 KB Expected int32, but "2500100000" found
29 Incorrect 33 ms 1048 KB Expected int32, but "2500100000" found
30 Incorrect 27 ms 1112 KB Expected int32, but "2500100000" found
31 Incorrect 0 ms 344 KB Output isn't correct
32 Incorrect 0 ms 344 KB Output isn't correct