Submission #927217

# Submission time Handle Problem Language Result Execution time Memory
927217 2024-02-14T12:24:17 Z vjudge1 Hotter Colder (IOI10_hottercolder) C++11
0 / 100
383 ms 148944 KB
#include <bits/stdc++.h>
using namespace std;

int HC(int n) {
    int l = 1, r = n, mid;
    int last = n;
    cout << n;
    int res;
    cin >> res;
    while(false) {
        mid = (l + r) >> 1;
        int g;
        cout << mid;
        cin >> g;
        if(g == 1) {
            r = mid;
        } else if(g == -1) {
            l = mid;
        } else {
            return (last - mid) / 2;
        }
        last = mid;
    }
    return n;
}
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 23528 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 23436 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 31 ms 23632 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 383 ms 148944 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -