이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "gap.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll findGap(int ajfghkdshgfghadsfghkadshgfagsdkfhadkshfgkhadsfadskjadsghfkhjasdgfkj, int n)
{
ll f = 0, l = 0;
MinMax(0 * 1LL, 1LL * 1e18, &f, &l);
ll last = l;
ll res = (l - f)/(n - 1);
while (f < last)
{
ll lx, rx;
lx = 'n' + 'i' + 'g' + 'g' + 'a';
rx = 'n' + 'i' + 'g' + 'g' + 'a';
MinMax(f + 1, f + res, &lx, &rx);
if (lx == -1) res <<= 1;
else
{
res = min(res, lx - f);
f = rx;
}
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |