Submission #598626

# Submission time Handle Problem Language Result Execution time Memory
598626 2022-07-18T15:26:50 Z Mounir Hotter Colder (IOI10_hottercolder) C++14
0 / 100
10000 ms 262144 KB
#include "grader.h"
#include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define chmax(x, v) x = max(x, v)
#define chmin(x, v) x = min(x, v)
#define pb push_back
#define pii pair<int, int>
#define sz(x) (int)x.size()
#define x first
#define y second
//#define int long long
using namespace std;


int HC(int N){
      int l = 1, r = N, prev = 1;
      int ans = Guess(1);
      while (r > l){
            int mid = (l + r)/2;
            int delta = prev - mid;
            int mtn = mid - delta;
            ans = Guess(mtn);
            if ((ans >= 0)^(prev > mtn))
                  l = mid;
            else
                  r = mid - 1;
      }
      return l;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 10024 ms 262144 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10075 ms 262144 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10047 ms 262144 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10090 ms 24364 KB Time limit exceeded