Submission #887195

# Submission time Handle Problem Language Result Execution time Memory
887195 2023-12-14T02:49:10 Z Muhammad_Aneeq Hotter Colder (IOI10_hottercolder) C++17
25 / 100
465 ms 24516 KB
#include "grader.h"
int st,en;
int qu(int s,int e)
{
	return Guess((s+e)/2);
}
int HC(int n)
{
	st=1,en=n+1;
	qu(st,n);
	while (st+1<en)
	{
		int mid=(st+en)/2;
		if (qu(st,mid)==1)
			en=mid;
		else
		{
			if (qu(mid,en)!=-1)
				st=mid;
			else
			{
				qu(st,en);
				en=mid;
			}
		}
	}
	return st;
}
# Verdict Execution time Memory Grader output
1 Correct 19 ms 2908 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 2908 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 2908 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 465 ms 24516 KB Output isn't correct - alpha = 0.000000000000