Submission #71691

# Submission time Handle Problem Language Result Execution time Memory
71691 2018-08-25T11:23:46 Z the_general(#2235, dbtlswkdrnss) The Ant Doing Hard Work (FXCUP3_ant) C++
90 / 100
2 ms 468 KB
#include<stdio.h>
#include "ant.h"

int FindK() {
	int l=0,r=100000000;
	while(l<r-1){
		int mid=(l+r)/2;
		if(DeliverCount(mid)==0){
			l=mid;
		}
		else r=mid;
	}
	return r;
}
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 256 KB Partially correct : C = 27
2 Partially correct 2 ms 360 KB Partially correct : C = 27
3 Partially correct 2 ms 444 KB Partially correct : C = 27
4 Partially correct 2 ms 468 KB Partially correct : C = 27
5 Partially correct 2 ms 468 KB Partially correct : C = 27