Submission #548865

# Submission time Handle Problem Language Result Execution time Memory
548865 2022-04-14T15:25:04 Z Trisanu_Das Hotter Colder (IOI10_hottercolder) C++17
25 / 100
585 ms 8104 KB
#include<bits/stdc++.h>
#include "grader.h"
using namespace std;
 
int Guess (int x);
 
int HC(int n){
  int l = 1,r = n;
  // bruh.
  while(l <= r){
      Guess(l);
      int try_ = Guess(r);
      if(try_ == -1) r = (l + r - 1) / 2;
      else if(try_ == 1) l = (l + r + 1) / 2;
      else return (l + r) / 2;
  }
  return l;
}
# Verdict Execution time Memory Grader output
1 Correct 21 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 1356 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 1300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 585 ms 8104 KB Output isn't correct - alpha = 0.000000000000