| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1323946 | aritro_ | Gap (APIO16_gap) | C++20 | 35 ms | 2356 KiB |
#include<bits/stdc++.h>
#include "gap.h"
using namespace std;
typedef long long ll;
#define pb push_back
ll findGap(int t,int n){
ll l=-1,r=2e18;
vector<ll> a;
for(int i=0;i<(n+1)/2;i++){
MinMax(l+1,r-1,&l,&r);
a.pb(l);
if(l!=r) a.pb(r);
}
sort(a.begin(),a.end());
ll ans=0;
for(int i=0;i<n-1;i++) ans=max(ans,a[i+1]-a[i]);
return ans;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
