Submission #388150

# Submission time Handle Problem Language Result Execution time Memory
388150 2021-04-10T09:37:21 Z Apiram Hotter Colder (IOI10_hottercolder) C++14
0 / 100
10000 ms 8100 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;

int HC(int N){
	int left= 1,right = N;
	int a;
	while (left<=right){
		int mid = left + (right-left)/2;
		a=Guess(mid);
		a=Guess(mid+1);
		if (a==1)left=mid;
		else {
			a=Guess(mid-1);
			if (a==0)return mid;
			else {
			a=Guess(mid);
			if (a==1)
			left = mid+1;
			else right=mid;
		 
			}}
	
	}
	return left;
	}

# Verdict Execution time Memory Grader output
1 Execution timed out 10018 ms 1228 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 10011 ms 1228 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 10074 ms 1228 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 10085 ms 8100 KB Time limit exceeded