| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 146298 | popovicirobert | Hotter Colder (IOI10_hottercolder) | C++14 | 709 ms | 128376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
int HC(int n){
if(n == 1) {
return 1;
}
int res = 0, last = 0, cnt = 0;
for(int step = 1 << 8; step; step >>= 1) {
if(res + step <= n) {
int cur = Guess(res + step);
cnt++;
if(cnt == 1) {
last = res + step - 1;
if(Guess(res + step - 1) == -1) {
res += step;
}
}
else {
if(cur == 0) {
return (last + res + step) / 2;
}
last = res + step - 1;
if(res + step > 1 && Guess(res + step - 1) == -1) {
res += step;
}
}
}
}
return res;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
