| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 30723 | PrOAhMeT | Gap (APIO16_gap) | C++14 | 79 ms | 6772 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "gap.h"
#include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
#define pii pair<int,int>
#define LL long long
#define st first
#define nd second
#define endl '\n'
using namespace std;
long long findGap(int T, int N)
{
vector<LL> v;
LL x=-1,y=1e18+1,nx,ny,ret=0;
if(T==1) {
while(x!=y) {
MinMax(x+1,y-1,&nx,&ny);
x=nx; y=ny;
if(x==-1)
break;
v.pb(x);
if(x!=y)
v.pb(y);
x=nx;
y=ny;
}
sort(v.begin(),v.end());
for(int i=1;i<v.size();++i)
ret=max(ret,v[i]-v[i-1]);
return ret;
}
else {
}
}컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
