제출 #71697

#제출 시각아이디문제언어결과실행 시간메모리
71697team (#119)The Ant Doing Hard Work (FXCUP3_ant)C++98
0 / 100
4 ms248 KiB
#include <bits/stdc++.h>
#include "ant.h"
using namespace std;
int FindK(){
    int l=1; int r=1e8-1;
    while(l+1<r){
        int mid=(l+r)/2;
        int tmp=DeliverCount(mid);
        if(tmp){
            r=mid/tmp;
            l=max(mid/(tmp+1)+1,l);
        }
        else l=mid+1;
    }
    return l;
}
#Verdict Execution timeMemoryGrader output
Fetching results...