Submission #853246

# Submission time Handle Problem Language Result Execution time Memory
853246 2023-09-23T18:19:46 Z JoksimKaktus Hotter Colder (IOI10_hottercolder) C++17
0 / 100
10000 ms 262144 KB
#include <bits/stdc++.h>
#include "grader.h"

using namespace std;

int HC(int N_){
    int l = 1; int r = 500;
    int g = r;
    Guess(l);
    while(l < r){
        int k = Guess(g);
        int mid = (l+r)/2;
        if(k == 0){
            return mid;
        }else if(k == 1){
            if(g != r){
                Guess(r);
            }
            l = mid;
            g = l;
        }else{
            if(g != l){
                Guess(l);
            }
            r = mid;
            g = r;
        }
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 10054 ms 6748 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10005 ms 6748 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10016 ms 6748 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2658 ms 262144 KB Execution killed with signal 9