답안 #71775

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
71775 2018-08-25T15:20:40 Z 내일_개학이다_ㅠㅠ(#2253, mAng0) 일하는 개미 (FXCUP3_ant) C++
0 / 100
2 ms 256 KB
#include "ant.h"

int FindK(){
    int rett = DeliverCount(99999999);
    int ss = 1, ee = 99999999, ans = 99999999;
    ss = 99999999 / (rett+1) + 1;
    ee = 99999999 / rett;
    ans = ee; ee--;
    while(ss <= ee){
        int mid = (ss+ee)/2;
        int ret = DeliverCount(mid);
        if(ret > 0){
            ans = mid;
        }else{
            ss = mid + 1;
        }
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 2 ms 256 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -