Submission #71731

# Submission time Handle Problem Language Result Execution time Memory
71731 2018-08-25T13:47:19 Z 고윤하 연말콘 언제하니(#2246, jun6873) The Ant Doing Hard Work (FXCUP3_ant) C++
90 / 100
2 ms 636 KB
#include "ant.h"

int FindK() {
	int l = 1, r = 100000000;
	while (l+1<r) {
		int m = (l+r)/2;
		if (DeliverCount(m)) r = m;
		else l = m;
	}
	return r;
}
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 248 KB Partially correct : C = 27
2 Partially correct 2 ms 356 KB Partially correct : C = 27
3 Partially correct 2 ms 432 KB Partially correct : C = 27
4 Partially correct 2 ms 432 KB Partially correct : C = 27
5 Partially correct 2 ms 636 KB Partially correct : C = 27