| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 814961 | 12345678 | Gap (APIO16_gap) | C++17 | 39 ms | 1896 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "gap.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
long long findGap(int T, int N)
{
ll arr[N], x=0, y=1e18, a, b, idx=0, mx=0;
while (1)
{
MinMax(x, y, &a, &b);
if (a==-1) break;
arr[idx]=a;
arr[N-idx-1]=b;
x=a+1; y=b-1;
idx++;
}
for (int i=0; i<N-1; i++) mx=max(mx, arr[i+1]-arr[i]);
return mx;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
