# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
650665 | Pety | Koala Game (APIO17_koala) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
int t, a[200002];
int greaterValue(int n, int w) {
vector<int>q(n);
int st = 1, dr = 7;
while (st <= dr) {
int mid = (st + dr) / 2;
vector<int>R(n);
q[0] = q[1] = mid;
playRound(q, R);
if (R[0] != R[1])
return R[0] < R[1];
if (!R[0])
dr = mid - 1;
else
st = mid + 1;
}
return 0;
}