Submission #957658

#TimeUsernameProblemLanguageResultExecution timeMemory
957658AC2KCluedo (IOI10_cluedo)C++17
100 / 100
6 ms596 KiB
#include "cluedo.h"
#include "grader.h"

void Solve() {
    int ans_x = 1, ans_y = 1, ans_z = 1;

    while (1) {
        int res = Theory(ans_x, ans_y, ans_z);
        if (res == 0) {
            return;
        }
        if (res == 1) {
            ++ans_x;
        }
        if (res == 2) {
            ++ans_y;
        }
        if (res == 3) {
            ++ans_z;
        }
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...