Submission #62578

# Submission time Handle Problem Language Result Execution time Memory
62578 2018-07-29T08:02:39 Z imsifile The Ant Doing Hard Work (FXCUP3_ant) C
0 / 100
2 ms 248 KB
#include "ant.h"

int mi=1, mx=99999999, md, dap;

int FindK() {
	while(1){
		md = (mi+mx)/2;
		if(mi==mx) break;
		int C = DeliverCount(md);
		mi = md/(C+1)+1;
		if(C) mx = md/C;
	}
	return md;
}
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 248 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -