# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
71628 | test (#119) | The Ant Doing Hard Work (FXCUP3_ant) | C++98 | 3 ms | 496 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"
int paramin(int s, int e){ // Add more parameters as you need
int mid, ans;
while(s <= e){
mid = (s+e)/2;
// Predicate here
bool pred = (DeliverCount(mid) >= 1);
// Predicate ends
if(pred) e=mid-1, ans=mid;
else s=mid+1;
}
return ans;
}
int FindK() {
return paramin(1, 99999999);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |