Submission #548863

# Submission time Handle Problem Language Result Execution time Memory
548863 2022-04-14T15:21:51 Z Trisanu_Das Hotter Colder (IOI10_hottercolder) C++17
0 / 100
10000 ms 8012 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
 
int Guess (int x);

int HC(int n){
  // I am going noob
  int l = 1, r = n;
  while(l <= r){
    int mid = (l + r) / 2;
    Guess(l);
    int try_ = Guess(r);
    if(try_ == 0) return mid;
    else if(try_ == 1) l = mid;
    else r = mid;
  }
  return l;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 10022 ms 1236 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10082 ms 1236 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10080 ms 1236 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10068 ms 8012 KB Time limit exceeded