Submission #754512

# Submission time Handle Problem Language Result Execution time Memory
754512 2023-06-07T22:59:07 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++14
50 / 100
568 ms 8056 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
 
int Guess (int x);
 
int HC(int N){
int l=1,r=N;
while(l!=r){
	Guess(l);
	int a = Guess(r);
	if(a==-1)
		r = (l+r-1)/2;
	else if(a==1)//close to l
		l = (l+r+1)/2;
	else return (l+r)/2;
}
return l;
}
# Verdict Execution time Memory Grader output
1 Correct 20 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 1300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 1296 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 568 ms 8056 KB Output isn't correct - alpha = 0.000000000000