| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1331063 | hectormedrano | Hotter Colder (IOI10_hottercolder) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "grader.h"
//#include "hottercolder.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
typedef long long ll;
int HC(int N){
ll L, R;
L = 1;
R = N+1;
while(R != L+1){
R--;
Guess(L);
Guess(R);
if(w == 0){return (L+R)/2;}
if(w == 1){
L = (L+R)/2 + 1;
R++;
}
if(w == -1){
R = (L+R+1)/2;
}
}
return L;
}