| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 489786 | andydexter | Gap (APIO16_gap) | C++14 | 31 ms | 1180 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "gap.h"
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
long long findGap(int T, int N)
{
ll mx,mn;
MinMax(0,1000000000000000000,&mn,&mx);
ll interval = (mx-mn)/N;
ll lowest = mn, highest = mx;
ll lower = lowest,lastmx = 0;
while(lower<=highest){
MinMax(lower,lower+interval,&mn,&mx);
if(mn>-1){
interval = max(interval,mn-lastmx);
lastmx = mx;
}
lower += interval+1;
}
return interval;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
