이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/** e==m*pow(c,2) **/
#include <bits/stdc++.h>
#include "gap.h"
#define int long long int
using namespace std;
int ara[100009];
long long findGap(int32_t T, int32_t N)
{
ara[0]=-1;
ara[N+1]=1000000000000000003LL;
int lo=0, hi=N+1, a, b;
while(lo<hi-1)
{
MinMax(ara[lo]+1, ara[hi]-1, &a, &b);
ara[++lo]=a;
ara[--hi]=b;
}
int mn=0;
for(int i=1;i<N;i++) mn=max(mn, ara[i+1]-ara[i]);
return mn;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |