Submission #774864

# Submission time Handle Problem Language Result Execution time Memory
774864 2023-07-06T04:32:27 Z Jomnoi Hotter Colder (IOI10_hottercolder) C++17
50 / 100
466 ms 12368 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;

int HC(int N) {
    int l = 1, r = N;
    while (l < r) {
        int mid = (l + r) / 2;
        
        Guess(mid);
        if (Guess(mid + 1) == 1) l = mid + 1;
        else r = mid;
    }
    return l;
}
# Verdict Execution time Memory Grader output
1 Correct 18 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 1308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 1236 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 466 ms 12368 KB Output isn't correct - alpha = 0.000000000000