Submission #1008340

# Submission time Handle Problem Language Result Execution time Memory
1008340 2024-06-26T09:37:42 Z ALTAKEXE Hotter Colder (IOI10_hottercolder) C++17
0 / 100
294 ms 157140 KB
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
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;
   return 0;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:7:8: warning: unused variable 'h' [-Wunused-variable]
    7 |    int h = Guess(N);
      |        ^
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 23132 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 23120 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 23260 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 294 ms 157140 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -