#include "ant.h"
#include <bits/stdc++.h>
using namespace std;
int l=1,r=1e8-1,ans=r;
int FindK()
{
while(l<=r){
int m=(l+r)/2,v=DeliverCount(m);
if(v==0) l=m+1;
else{
if(v==1) ans=min(ans,m);
r=m-1;
}
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
3 ms |
376 KB |
Partially correct : C = 27 |
2 |
Partially correct |
2 ms |
476 KB |
Partially correct : C = 27 |
3 |
Partially correct |
3 ms |
476 KB |
Partially correct : C = 27 |
4 |
Partially correct |
2 ms |
476 KB |
Partially correct : C = 27 |
5 |
Partially correct |
2 ms |
576 KB |
Partially correct : C = 27 |