Submission #71780

#TimeUsernameProblemLanguageResultExecution timeMemory
71780Give_Me_Vita (#119)The Ant Doing Hard Work (FXCUP3_ant)C++17
90 / 100
3 ms604 KiB
#include "ant.h" int FindK() { int s = 1; int g = 99999999; while(s < g) { int x = (s + g) / 2; int t = DeliverCount(x); if(t > 1) g = x - 1; else if(t == 1) g = x; else s = x + 1; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...