Submission #241564

# Submission time Handle Problem Language Result Execution time Memory
241564 2020-06-24T13:02:42 Z davi_bart Hotter Colder (IOI10_hottercolder) C++14
0 / 100
10000 ms 24440 KB
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
#define ll long long
//#define int ll
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int ans(int a,int b){
  Guess(a);
  int x=Guess(b);
  if(x==0)return (a+b)/2;
  if(x==-1)return ans(a,(a+b)/2);
  return ans((a+b)/2,b);
}
int HC(int N){
   return ans(1,N);
}/*
signed main(){
    ios_base::sync_with_stdio(0);cin.tie(0);

}*/
/*
5 5 3 3
5 11 12 16 25
17 18 2 7 10
4 23 20 3 1
24 21 19 14 9
6 22 8 13 15
*/
# Verdict Execution time Memory Grader output
1 Execution timed out 10006 ms 1280 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 10089 ms 1280 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 10036 ms 1280 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 10026 ms 24440 KB Time limit exceeded