# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
53671 | SpaimaCarpatilor | Aliens (IOI07_aliens) | C++17 | 5 ms | 660 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int M, N, X, Y, up, down, lft, rgt;
bool ok (int i, int j)
{
if (i < 1 || j < 1 || i > N || j > N) return 0;
cout << "examine " << i << " " << j << endl;
cout.flush ();
char ans[109];
cin >> ans;
return (ans[0] == 't');
}
void finish (int i, int j)
{
cout << "solution " << i << " " << j << endl;
cout.flush ();
}
void detUp ()
{
int lg = 0;
while (ok (X - (1 << lg), Y)) lg ++;
if (lg > 0)
lg --, up -= (1 << lg);
for (int i=lg - 1; i>=0; i--)
if (ok (up - (1 << i), Y))
# | 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... |