답안 #1110467

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1110467 2024-11-09T14:01:03 Z TitanicXDzz Gap (APIO16_gap) C++17
0 / 100
40 ms 2876 KB
#include "gap.h"
#include<bits/stdc++.h>
using namespace std;
long long findGap(int T, int n)
{
       long long s=-1;
       long long t=1e18+1;
       long long x=-1;
       long long y=-1;
       long long maxi=LLONG_MIN;
       while(s<=t){
           MinMax(s+1,t-1,&s,&t);
           if(x!=-1){
            maxi=max(maxi,s-x);
            maxi=max(maxi,y-t);
           }
           x=s;
           y=t;
       }
       return maxi;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 336 KB Execution failed because the return code was nonzero
2 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
3 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
4 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
5 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
6 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
7 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
8 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
9 Runtime error 2 ms 2384 KB Execution failed because the return code was nonzero
10 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
11 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
12 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
13 Runtime error 2 ms 2384 KB Execution failed because the return code was nonzero
14 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
15 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
16 Runtime error 7 ms 2384 KB Execution failed because the return code was nonzero
17 Runtime error 8 ms 2384 KB Execution failed because the return code was nonzero
18 Runtime error 11 ms 2384 KB Execution failed because the return code was nonzero
19 Runtime error 8 ms 2592 KB Execution failed because the return code was nonzero
20 Runtime error 7 ms 2384 KB Execution failed because the return code was nonzero
21 Runtime error 29 ms 2864 KB Execution failed because the return code was nonzero
22 Runtime error 36 ms 2640 KB Execution failed because the return code was nonzero
23 Runtime error 28 ms 2640 KB Execution failed because the return code was nonzero
24 Runtime error 28 ms 2640 KB Execution failed because the return code was nonzero
25 Runtime error 25 ms 2640 KB Execution failed because the return code was nonzero
26 Runtime error 28 ms 2736 KB Execution failed because the return code was nonzero
27 Runtime error 40 ms 2640 KB Execution failed because the return code was nonzero
28 Runtime error 35 ms 2640 KB Execution failed because the return code was nonzero
29 Runtime error 37 ms 2640 KB Execution failed because the return code was nonzero
30 Runtime error 21 ms 2640 KB Execution failed because the return code was nonzero
31 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
32 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
2 Runtime error 1 ms 2396 KB Execution failed because the return code was nonzero
3 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
4 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
5 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
6 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
7 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
8 Runtime error 2 ms 2384 KB Execution failed because the return code was nonzero
9 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
10 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
11 Runtime error 2 ms 2384 KB Execution failed because the return code was nonzero
12 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
13 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
14 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
15 Runtime error 2 ms 2384 KB Execution failed because the return code was nonzero
16 Runtime error 7 ms 2384 KB Execution failed because the return code was nonzero
17 Runtime error 8 ms 2384 KB Execution failed because the return code was nonzero
18 Runtime error 8 ms 2384 KB Execution failed because the return code was nonzero
19 Runtime error 10 ms 2384 KB Execution failed because the return code was nonzero
20 Runtime error 6 ms 2384 KB Execution failed because the return code was nonzero
21 Runtime error 28 ms 2860 KB Execution failed because the return code was nonzero
22 Runtime error 27 ms 2812 KB Execution failed because the return code was nonzero
23 Runtime error 27 ms 2640 KB Execution failed because the return code was nonzero
24 Runtime error 35 ms 2660 KB Execution failed because the return code was nonzero
25 Runtime error 24 ms 2640 KB Execution failed because the return code was nonzero
26 Runtime error 27 ms 2640 KB Execution failed because the return code was nonzero
27 Runtime error 27 ms 2876 KB Execution failed because the return code was nonzero
28 Runtime error 27 ms 2812 KB Execution failed because the return code was nonzero
29 Runtime error 27 ms 2640 KB Execution failed because the return code was nonzero
30 Runtime error 21 ms 2640 KB Execution failed because the return code was nonzero
31 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero
32 Runtime error 1 ms 2384 KB Execution failed because the return code was nonzero