Submission #817427

#TimeUsernameProblemLanguageResultExecution timeMemory
817427PikachuCluedo (IOI10_cluedo)C++17
0 / 100
0 ms288 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...