# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
71698 | the_general (#119) | 일하는 개미 (FXCUP3_ant) | C++98 | 3 ms | 432 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "ant.h"
int FindK() {
int l=0,r=100000000,temp=0,temp2=0;
temp=r*2/3;
temp2=DeliverCount(temp);
switch(temp2){
case 0:
l=temp;
break;
case 1:
l=temp/2;
r=temp;
break;
default:
r=temp/2;
}
while(l<r-1){
int mid=(l+r)/2;
if(DeliverCount(mid)==0){
l=mid;
}
else r=mid;
}
return r;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |