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