Submission #62576

# Submission time Handle Problem Language Result Execution time Memory
62576 2018-07-29T07:57:37 Z imsifile The Ant Doing Hard Work (FXCUP3_ant) C++14
90 / 100
3 ms 680 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);
		if(C) mx=md;
		else mi=md+1;
	}
	return md;
}
# Verdict Execution time Memory Grader output
1 Partially correct 3 ms 248 KB Partially correct : C = 27
2 Partially correct 3 ms 360 KB Partially correct : C = 27
3 Partially correct 2 ms 512 KB Partially correct : C = 27
4 Partially correct 2 ms 680 KB Partially correct : C = 27
5 Partially correct 3 ms 680 KB Partially correct : C = 27