# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
105994 |
2019-04-16T06:30:04 Z |
daniel920712 |
Gap (APIO16_gap) |
C++14 |
|
0 ms |
0 KB |
#include <iostream>
#include "gap.h"
using namespace std;
long long all[100005];
long long findGap(long long T,long long N)
{
long long a,b,l=0,r=N-1,x=0,y=1e9,ans=0,i;
while(l<=r)
{
MinMax(x,y,&a,&b);
all[l]=a;
all[r]=b;
x=a+1;
y=b-1;
}
for(i=1;i<N;i++) ans=max(ans,all[i]-all[i-1]);
return ans;
}
Compilation message
/tmp/ccDCYS8j.o: In function `main':
grader.cpp:(.text.startup+0x18e): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status