| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1317560 | eri16 | Gap (APIO16_gap) | C++20 | 33 ms | 2352 KiB |
#include <bits/stdc++.h>
#include "gap.h"
using namespace std;
using ll = long long;
ll findGap(int t, int n){
vector <ll> v;
ll curmn=0,curmx=1e18,mn,mx;
while (curmn<=curmx){
MinMax(curmn,curmx,&mn,&mx);
if (mn!=-1){v.push_back(mn);}curmn=mn+1;
if (mx!=-1){v.push_back(mx);}curmx=mx-1;
}
sort(v.begin(),v.end());
ll ans=0;
for (int i=1; i<n; i++){
ans=max(ans,v[i]-v[i-1]);
}
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
