Submission #754491

# Submission time Handle Problem Language Result Execution time Memory
754491 2023-06-07T21:47:49 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++17
0 / 100
10000 ms 8096 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
 
 
int HC(int n){
    int st = 1;
    int dr = n;
    while(st <= dr){
        Guess(st);
        int x = Guess(dr);
        int mij = (st + dr) / 2;
        if(x == 0)
            return mij;
        else if(x > 0){
            st = mij;
        }
        else{
            dr = mij - 1;
        }
    }
    return st;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 10008 ms 1236 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10095 ms 1236 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10099 ms 1236 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10089 ms 8096 KB Time limit exceeded