# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
69169 | FedericoS | Gap (APIO16_gap) | C++14 | 2075 ms | 2592 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 <vector>
#include <iostream>
#include <assert.h>
#include <algorithm>
using namespace std;
typedef long long ll;
ll INF=1e18;
ll S=1e12;
ll K=50;
ll x,y;
vector<ll> V;
void F(ll a, ll b){
MinMax(a,b,&x,&y);
if(x==-1)return;
if(a==b)
V.push_back(a);
else{
ll p=(b-a+K-1)/K;
for(ll i=a;i<=b;i+=p)
F(i,min(i+p-1,b));
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |