# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
39591 |
2018-01-16T17:10:55 Z |
igzi |
Gap (APIO16_gap) |
C++14 |
|
66 ms |
5800 KB |
#include <bits/stdc++.h>
#include "gap.h"
long long findGap(int t,int n){
long long l=0,d=n,x=-1,y=1e18+1,a[100002],m=0;
for(int i=0;i<n;i++){
a[i]=-1;
}
while(y!=-1){
MinMax(x+1,y-1,&x,&y);
a[l]=x;
a[d]=y;
l++; d--;
}
for(int i=1;i<n;i++){
if(a[i]!=-1 && a[i-1]!=-1 && a[i]-a[i-1]>m) m=a[i]-a[i-1];
}
return m;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
3 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
4 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
5 |
Incorrect |
0 ms |
5792 KB |
Unexpected end of file - int64 expected |
6 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
5800 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
11 |
Incorrect |
0 ms |
5792 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
5792 KB |
Output isn't correct |
13 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
14 |
Incorrect |
0 ms |
5800 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
5792 KB |
Output isn't correct |
16 |
Incorrect |
16 ms |
5792 KB |
Output isn't correct |
17 |
Incorrect |
9 ms |
5800 KB |
Output isn't correct |
18 |
Incorrect |
16 ms |
5796 KB |
Output isn't correct |
19 |
Incorrect |
13 ms |
5796 KB |
Output isn't correct |
20 |
Incorrect |
9 ms |
5796 KB |
Unexpected end of file - int64 expected |
21 |
Incorrect |
53 ms |
5800 KB |
Output isn't correct |
22 |
Incorrect |
63 ms |
5792 KB |
Output isn't correct |
23 |
Incorrect |
43 ms |
5800 KB |
Output isn't correct |
24 |
Incorrect |
46 ms |
5796 KB |
Output isn't correct |
25 |
Incorrect |
53 ms |
5800 KB |
Output isn't correct |
26 |
Incorrect |
56 ms |
5796 KB |
Output isn't correct |
27 |
Incorrect |
53 ms |
5800 KB |
Output isn't correct |
28 |
Incorrect |
59 ms |
5792 KB |
Output isn't correct |
29 |
Incorrect |
59 ms |
5796 KB |
Output isn't correct |
30 |
Incorrect |
39 ms |
5796 KB |
Unexpected end of file - int64 expected |
31 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
32 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
3 |
Incorrect |
0 ms |
5792 KB |
Unexpected end of file - int64 expected |
4 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
5 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
6 |
Partially correct |
0 ms |
5800 KB |
Partially correct |
7 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
8 |
Partially correct |
0 ms |
5800 KB |
Partially correct |
9 |
Partially correct |
0 ms |
5792 KB |
Partially correct |
10 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
11 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
12 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
13 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
14 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
15 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
16 |
Partially correct |
6 ms |
5796 KB |
Partially correct |
17 |
Partially correct |
16 ms |
5796 KB |
Partially correct |
18 |
Partially correct |
9 ms |
5800 KB |
Partially correct |
19 |
Partially correct |
13 ms |
5796 KB |
Partially correct |
20 |
Incorrect |
6 ms |
5796 KB |
Unexpected end of file - int64 expected |
21 |
Incorrect |
66 ms |
5796 KB |
Expected int32, but "2500100001" found |
22 |
Incorrect |
63 ms |
5796 KB |
Expected int32, but "2500100001" found |
23 |
Incorrect |
66 ms |
5796 KB |
Expected int32, but "2500100001" found |
24 |
Incorrect |
56 ms |
5796 KB |
Expected int32, but "2500100001" found |
25 |
Incorrect |
53 ms |
5792 KB |
Expected int32, but "2500100001" found |
26 |
Incorrect |
56 ms |
5800 KB |
Expected int32, but "2500100001" found |
27 |
Incorrect |
46 ms |
5796 KB |
Expected int32, but "2500100001" found |
28 |
Incorrect |
53 ms |
5796 KB |
Expected int32, but "2500100001" found |
29 |
Incorrect |
53 ms |
5800 KB |
Expected int32, but "2500100001" found |
30 |
Incorrect |
49 ms |
5792 KB |
Unexpected end of file - int64 expected |
31 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
32 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |