Submission #754524

# Submission time Handle Problem Language Result Execution time Memory
754524 2023-06-07T23:08:58 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++14
0 / 100
582 ms 39272 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
 
int Guess (int x);
 
int HC(int N){
int st=1,dr=N;
Guess(st);
int a = Guess(dr);
int mij = 0;
while(st!=dr){
	mij = (st+ dr) >> 1;
	if(a==-1)
		dr= mij;
	else if(a==1)//close to l
		st = mij + 1;
	else return mij;
	
	Guess(st);
	a = Guess(dr);
}
if(a == 0)
    return mij;
else
    return st;
}
# Verdict Execution time Memory Grader output
1 Incorrect 27 ms 5332 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 27 ms 5272 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 5212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 582 ms 39272 KB Output isn't correct - alpha = 0.000000000000