Submission #71714

#TimeUsernameProblemLanguageResultExecution timeMemory
71714chobo (#119)The Ant Doing Hard Work (FXCUP3_ant)C++98
0 / 100
3 ms248 KiB
#include "ant.h"

#include <stdio.h>
#include <algorithm>
using namespace std;

int FindK() {
	int s=1,e=1e8,m;

	while(s<=e){
        m=(s+e)>>1;

        printf("%d ",m);

        if(DeliverCount(m)) e=m-1;
        else s=m+1;
	}

	return s;
}
#Verdict Execution timeMemoryGrader output
Fetching results...