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>
#include "grader.h"
#include "cluedo.h"
using namespace std;
int ask(int x, int y, int z)
{
cout << x << ' ' << y << ' ' << z << endl;
int tmp;
cin >> tmp;
return tmp;
}
void Solve()
{
int x = 1, y = 1, z = 1;
while (int dak = ask(x, y, z)) {
if (dak == 1) x++;
else if (dak == 2) y++;
else z++;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |