제출 #71712

#제출 시각아이디문제언어결과실행 시간메모리
71712퍼솔 가즈아ㅏㅏㅏ (#119)The Ant Doing Hard Work (FXCUP3_ant)C++14
100 / 100
3 ms468 KiB
#include "ant.h"

int FindK() {
	int l = 0, r = 133333334;
	while(r-l>1){
		int m=(l+r)/2;
		int t=DeliverCount(m);
		l=m/(t+1)>l?m/(t+1):l;
		if(t>0) r=m/t<r?m/t:r;
		if(r>100000000) r=100000000;
	}
	return r;
}
#Verdict Execution timeMemoryGrader output
Fetching results...