# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71720 | chobo (#119) | The Ant Doing Hard Work (FXCUP3_ant) | C++98 | 3 ms | 548 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 "ant.h"
#include <stdio.h>
#include <algorithm>
using namespace std;
int FindK() {
int s=1,e=1e8-1,m;
while(s<=e){
m=(s+e+e)/3;
int res=DeliverCount(m);
if(res){
s=max(s,m/(res+1)+1);
e=min(e,m/res-1);
}
else s=m+1;
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |