# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
554434 | fatemetmhr | Gap (APIO16_gap) | C++17 | 47 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.
// Be name khoda //
#include "gap.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(x) x.begin(), x.end()
#define fi first
#define se second
#define pb push_back
const int maxn5 = 5e2 + 5;
const int maxnb = 1e3 + 10;
const int mod = 1e9 + 7;
vector <ll> have;
long long findGap(int T, int N)
{
ll lo = 0, hi = 1e18;
int rem = N;
while(rem > 0 && hi >= lo){
ll mn, mx;
MinMax(lo, hi, &mn, &mx);
//cout << "asking for " << lo << ' ' << hi << ' ' << mn << ' ' << mx << endl;
have.pb(mn);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |