Submission #7449

# Submission time Handle Problem Language Result Execution time Memory
7449 2014-08-06T14:55:15 Z gs13068 Hotter Colder (IOI10_hottercolder) C++
0 / 100
890 ms 101728 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 Incorrect 44 ms 12536 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 46 ms 12536 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 45 ms 12512 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 890 ms 101728 KB Output isn't correct - alpha = 0.000000000000