Submission #651520

# Submission time Handle Problem Language Result Execution time Memory
651520 2022-10-19T07:59:37 Z kunzaZa183 Hotter Colder (IOI10_hottercolder) C++
0 / 100
435 ms 140728 KB
#include "grader.h"

int HC(int N)
{
   int g = Guess(1);
   int h = Guess(N);
   if (g == 0)
      return N / 2;
   if (g < 0)
      return N / 4;
   if (g > 0)
      return 3 * N / 4;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:6:8: warning: unused variable 'h' [-Wunused-variable]
    6 |    int h = Guess(N);
      |        ^
hottercolder.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 17740 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 17748 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 17752 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 435 ms 140728 KB Output isn't correct - alpha = 0.000000000000