Submission #722364

# Submission time Handle Problem Language Result Execution time Memory
722364 2023-04-11T20:40:21 Z tvladm2009 Hotter Colder (IOI10_hottercolder) C++17
50 / 100
650 ms 24340 KB
#include <bits/stdc++.h>
#include "grader.h"

using namespace std;

typedef long long ll;

int HC(int n) {
  int low = 1, high = n;
  while (low < high) {
    int mid = (low + high) / 2;
    Guess(low);
    int verdict = Guess(high);
    if (verdict == 0) {
      return mid;
    } else if (verdict == 1) {
      low = mid + 1;
    } else {
      high = mid;
    }
  }
  return low;
}
# Verdict Execution time Memory Grader output
1 Correct 22 ms 1240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 1300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 650 ms 24340 KB Output isn't correct - alpha = 0.000000000000