Submission #7448

# Submission time Handle Problem Language Result Execution time Memory
7448 2014-08-06T14:55:09 Z gs13068 Hotter Colder (IOI10_hottercolder) C++
50 / 100
758 ms 8256 KB
#include"grader.h"
 
int HC(int N)
{
  int l,r,m;
  l=1;
  r=N;
  while(l<=r)
  {
    Guess(l);
    m=Guess(r);
    if(m==0)return (l+r)/2;
    if(m==1)l=(l+r)/2+1;
    else r=(l+r-1)/2;
  }
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 30 ms 1400 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 39 ms 1272 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 758 ms 8256 KB Output isn't correct - alpha = 0.000000000000