Submission #71727

#TimeUsernameProblemLanguageResultExecution timeMemory
71727chobo (#119)The Ant Doing Hard Work (FXCUP3_ant)C++98
100 / 100
4 ms488 KiB
#include "ant.h" #include <stdio.h> #include <algorithm> using namespace std; int FindK() { int s=1,e=1e8-1,m=1e8/3*2; while(s<=e){ int res=DeliverCount(m); if(res){ s=max(s,m/(res+1)+1); e=min(e,m/res-1); } else s=m+1; m=(s+e)>>1; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...