# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1110476 | 2024-11-09T14:14:41 Z | TitanicXDzz | Gap (APIO16_gap) | C++14 | 46 ms | 3976 KB |
#include "gap.h" #include<bits/stdc++.h> using namespace std; vector<long long> v; 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); v.push_back(t); v.push_back(s); } int i=1; long long xx; sort(v.begin(),v.end()); for(auto a:v){ if(i!=1){ maxi=max(maxi,a-xx); } i++; xx=a; } return maxi; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Output isn't correct |
2 | Correct | 1 ms | 2384 KB | Output is correct |
3 | Correct | 1 ms | 2384 KB | Output is correct |
4 | Correct | 1 ms | 2384 KB | Output is correct |
5 | Correct | 2 ms | 2384 KB | Output is correct |
6 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
7 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
8 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
9 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
10 | Runtime error | 1 ms | 2384 KB | Execution failed because the return code was nonzero |
11 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
12 | Incorrect | 1 ms | 2552 KB | Output isn't correct |
13 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
14 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
15 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
16 | Incorrect | 8 ms | 2896 KB | Output isn't correct |
17 | Incorrect | 8 ms | 2896 KB | Output isn't correct |
18 | Incorrect | 9 ms | 2896 KB | Output isn't correct |
19 | Incorrect | 10 ms | 2896 KB | Output isn't correct |
20 | Runtime error | 7 ms | 2896 KB | Execution failed because the return code was nonzero |
21 | Incorrect | 42 ms | 3928 KB | Output isn't correct |
22 | Incorrect | 34 ms | 3944 KB | Output isn't correct |
23 | Incorrect | 31 ms | 3976 KB | Output isn't correct |
24 | Incorrect | 32 ms | 3956 KB | Output isn't correct |
25 | Incorrect | 29 ms | 3784 KB | Output isn't correct |
26 | Incorrect | 36 ms | 3784 KB | Output isn't correct |
27 | Incorrect | 32 ms | 3784 KB | Output isn't correct |
28 | Incorrect | 33 ms | 3784 KB | Output isn't correct |
29 | Incorrect | 31 ms | 3784 KB | Output isn't correct |
30 | Runtime error | 29 ms | 3784 KB | Execution failed because the return code was nonzero |
31 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
32 | Correct | 1 ms | 2384 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2384 KB | Output is correct |
2 | Partially correct | 1 ms | 2384 KB | Partially correct |
3 | Partially correct | 1 ms | 2384 KB | Partially correct |
4 | Partially correct | 1 ms | 2384 KB | Partially correct |
5 | Partially correct | 1 ms | 2384 KB | Partially correct |
6 | Partially correct | 1 ms | 2384 KB | Partially correct |
7 | Partially correct | 1 ms | 2384 KB | Partially correct |
8 | Partially correct | 1 ms | 2384 KB | Partially correct |
9 | Partially correct | 1 ms | 2384 KB | Partially correct |
10 | Runtime error | 1 ms | 2384 KB | Execution failed because the return code was nonzero |
11 | Partially correct | 1 ms | 2384 KB | Partially correct |
12 | Partially correct | 1 ms | 2384 KB | Partially correct |
13 | Partially correct | 1 ms | 2384 KB | Partially correct |
14 | Partially correct | 1 ms | 2384 KB | Partially correct |
15 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
16 | Partially correct | 11 ms | 2896 KB | Partially correct |
17 | Partially correct | 9 ms | 2896 KB | Partially correct |
18 | Partially correct | 8 ms | 2896 KB | Partially correct |
19 | Partially correct | 8 ms | 2896 KB | Partially correct |
20 | Runtime error | 7 ms | 2896 KB | Execution failed because the return code was nonzero |
21 | Incorrect | 34 ms | 3804 KB | Expected int32, but "2500100001" found |
22 | Incorrect | 33 ms | 3924 KB | Expected int32, but "2500100001" found |
23 | Incorrect | 46 ms | 3844 KB | Expected int32, but "2500100001" found |
24 | Incorrect | 39 ms | 3880 KB | Expected int32, but "2500100001" found |
25 | Incorrect | 31 ms | 3784 KB | Expected int32, but "2500100001" found |
26 | Incorrect | 34 ms | 3784 KB | Expected int32, but "2500100001" found |
27 | Incorrect | 34 ms | 3972 KB | Expected int32, but "2500100001" found |
28 | Incorrect | 32 ms | 3784 KB | Expected int32, but "2500100001" found |
29 | Incorrect | 45 ms | 3856 KB | Expected int32, but "2500100001" found |
30 | Runtime error | 26 ms | 3784 KB | Execution failed because the return code was nonzero |
31 | Incorrect | 1 ms | 2384 KB | Output isn't correct |
32 | Partially correct | 1 ms | 2384 KB | Partially correct |