이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "gap.h"
#include<bits/stdc++.h>
const long long INF = 1e18 + 6;
using namespace std;
long long a[100005];
long long findGap(int T, int N)
{
if(T == 1){
int l = 0;
int r = N - 1;
long long mn = 0, mx = 1e18;
long long h,h1;
while(l <= r){
MinMax(mn, mx, &h, &h1);
a[l] = h;
a[r] = h1;
l++;
r--;
}
long long ans = 0;
for(int i = 1; i < N; i++){
ans = max(ans,a[i] - a[i - 1]);
}
return ans;
}
else{
return 7;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |