# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
39590 |
2018-01-16T17:10:15 Z |
igzi |
Gap (APIO16_gap) |
C++14 |
|
33 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 |
5796 KB |
Unexpected end of file - int64 expected |
5 |
Incorrect |
0 ms |
5792 KB |
Unexpected end of file - int64 expected |
6 |
Incorrect |
0 ms |
5800 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 |
5796 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
11 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
13 |
Incorrect |
0 ms |
5800 KB |
Output isn't correct |
14 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
5792 KB |
Output isn't correct |
16 |
Incorrect |
13 ms |
5800 KB |
Output isn't correct |
17 |
Incorrect |
13 ms |
5796 KB |
Output isn't correct |
18 |
Incorrect |
13 ms |
5792 KB |
Output isn't correct |
19 |
Incorrect |
16 ms |
5800 KB |
Output isn't correct |
20 |
Incorrect |
6 ms |
5792 KB |
Unexpected end of file - int64 expected |
21 |
Runtime error |
29 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
22 |
Runtime error |
26 ms |
5792 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
23 |
Runtime error |
26 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
24 |
Runtime error |
26 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
25 |
Runtime error |
23 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
26 |
Runtime error |
19 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
27 |
Runtime error |
29 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
28 |
Runtime error |
23 ms |
5792 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
29 |
Runtime error |
26 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
30 |
Runtime error |
16 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
31 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
32 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
# |
결과 |
실행 시간 |
메모리 |
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 |
5792 KB |
Unexpected end of file - int64 expected |
5 |
Incorrect |
0 ms |
5800 KB |
Unexpected end of file - int64 expected |
6 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
7 |
Partially correct |
0 ms |
5800 KB |
Partially correct |
8 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
9 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
10 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
11 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
13 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
14 |
Incorrect |
0 ms |
5796 KB |
Output isn't correct |
15 |
Partially correct |
0 ms |
5796 KB |
Partially correct |
16 |
Incorrect |
9 ms |
5796 KB |
Output isn't correct |
17 |
Incorrect |
13 ms |
5792 KB |
Output isn't correct |
18 |
Incorrect |
13 ms |
5796 KB |
Output isn't correct |
19 |
Incorrect |
13 ms |
5796 KB |
Output isn't correct |
20 |
Incorrect |
6 ms |
5796 KB |
Unexpected end of file - int64 expected |
21 |
Runtime error |
26 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
22 |
Runtime error |
29 ms |
5792 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
23 |
Runtime error |
33 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
24 |
Runtime error |
23 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
25 |
Runtime error |
19 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
26 |
Runtime error |
19 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
27 |
Runtime error |
33 ms |
5796 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
28 |
Runtime error |
29 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
29 |
Runtime error |
29 ms |
5800 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
30 |
Runtime error |
16 ms |
5792 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
31 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |
32 |
Incorrect |
0 ms |
5796 KB |
Unexpected end of file - int64 expected |