Submission #71828

#TimeUsernameProblemLanguageResultExecution timeMemory
71828Rolling Tamref (#119)The Ant Doing Hard Work (FXCUP3_ant)C++17
100 / 100
3 ms484 KiB
#include "ant.h" int FindK() { int tt = 1 << 26; int q = DeliverCount(tt); int lo = tt/(q+1), mi, hi = (q ? (tt+q-1)/q : 1e8-1); int d; while(hi - lo > 1){ mi = (lo + hi) >> 1; d = DeliverCount(mi); if(d){ hi = mi; }else{ lo = mi; } } return hi; }
#Verdict Execution timeMemoryGrader output
Fetching results...