#include <bits/stdc++.h>
#include "ant.h"
using namespace std;
int FindK(){
int l=1; int r=1e8-1;
while(l<r){
int mid=(l+2*r)/3;
int tmp=DeliverCount(mid);
if(tmp){
r=mid/tmp;
l=max(mid/(tmp+1)+1,l);
}
else l=mid+1;
}
return l;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
3 ms |
376 KB |
Partially correct : C = 43 |
2 |
Partially correct |
3 ms |
376 KB |
Partially correct : C = 40 |
3 |
Correct |
3 ms |
412 KB |
Correct |
4 |
Partially correct |
3 ms |
412 KB |
Partially correct : C = 43 |
5 |
Correct |
3 ms |
488 KB |
Correct |