# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1009752 | u_suck_o | Hotter Colder (IOI10_hottercolder) | C++17 | 444 ms | 58180 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
#include "grader.h"
using namespace std;
int Guess(int G);
int f(int l, int r) {
if (l == r)
return l;
int g1 = Guess(l);
int g2 = Guess(r);
if (r - l == 1) {
if (g2 == -1)
return l;
else
return r;
}
if (g2 == 0)
return (l+r)/2;
if (g2 == -1) {
if ((l + r) % 2 == 1)
return f(l, (l+r)/2-1);
else
return f(l, (l+r)/2);
}
else {
if ((l+r) % 2 == 1)
return f((l+r)/2, r);
else
return f((l+r)/2+1, r);
}
}
int HC(int N){
return f(1, N);
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |