#include "ant.h"
int mi=1, mx=99999999, md, dap;
int FindK() {
while(1){
md = (mi+mx)/2;
if(mi==mx) break;
int C = DeliverCount(md);
if(C) mx=md;
else mi=md+1;
}
return md;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
3 ms |
248 KB |
Partially correct : C = 27 |
2 |
Partially correct |
3 ms |
360 KB |
Partially correct : C = 27 |
3 |
Partially correct |
2 ms |
512 KB |
Partially correct : C = 27 |
4 |
Partially correct |
2 ms |
680 KB |
Partially correct : C = 27 |
5 |
Partially correct |
3 ms |
680 KB |
Partially correct : C = 27 |