# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71716 | 유애나 (#119) | The Ant Doing Hard Work (FXCUP3_ant) | C++17 | 3 ms | 256 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"
const int T = 33333333;
int q(int x){ return DeliverCount(x); }
int FindK(){
int t = q(2 * T), l, r;
if(t >= 2){ l = 1; r = T; }
else if(t == 1){ l = T + 1; r = 2 * T; }
else{ l = 2 * T + 1; r = 3 * T; }
while(l < r){
int m = (l + r) / 2;
if(q(m + 1)) l = m + 1;
else r = m;
}
return r;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |