# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
71493 | RezwanArefin01 | Aliens (IOI07_aliens) | C++17 | 5 ms | 572 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
int n;
map<pair<ll, ll>, bool> mp;
bool get(ll x, ll y) {
if(x < 1 || x > n || y < 1 || y > n) return 0;
if(mp.count({x, y})) return mp[{x, y}];
cout << "examine " << x << " " << y << endl;
string s; cin >> s;
return mp[{x, y}] = s[0] == 't';
}
void ans(ll x, ll y) {
cout << "solution " << x << " " << y << endl;
}
ll find(ll x, ll y, ll dx, ll dy) {
ll d = 1;
while(get(x + dx * d, y + dy * d)) d <<= 1;
ll lo = d >> 1, hi = d, idx;
while(lo <= hi) {
ll mid = lo + hi >> 1;
if(get(x + dx * mid, y + dy * mid))
lo = mid + 1, idx = mid;
컴파일 시 표준 에러 (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... |
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |