# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
549777 | Pherokung | Gap (APIO16_gap) | C++14 | 49 ms | 2328 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "gap.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll findGap(int T, int n)
{
vector<ll> V;
if(T == 1){
ll l=1,r=1e18,mn,mx,ans;
while(V.size() < n){
MinMax(l,r,&mn,&mx);
V.push_back(mn);
if(mx != mn) V.push_back(mx);
l = mn + 1, r = mx - 1;
}
return ans;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |