답안 #754479

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
754479 2023-06-07T21:16:50 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++17
25 / 100
564 ms 8104 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;


int HC(int n){
    int st = 1;
    int dr = n;
    while(st <= dr){
        int mij = (st + dr) >> 1;
        Guess(st);
        int x = Guess(dr);
        if(x == 0){
            return mij;
        }
        else if(x > 0){
            st = mij + 1;
        }
        else
            dr = mij;
    }
    return st;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 22 ms 1236 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 21 ms 1236 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 23 ms 1288 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 564 ms 8104 KB Output isn't correct - alpha = 0.000000000000