Submission #1238563

#TimeUsernameProblemLanguageResultExecution timeMemory
1238563feukicCluedo (IOI10_cluedo)C11
0 / 100
0 ms392 KiB
void Solve() {
    int i = 0, j = 0, k = 0;
    int n = Theory(i, j, k);
    while (n) {
        if (n == 1) {
            n = Theory(++i, j, k);
        } else if (n == 2) {
            n = Theory(i, ++j, k);
        } else if (n == 3) {
            n = Theory(i, j, ++k);
        } else {
            return;
        }
    }
}

Compilation message (stderr)

cluedo.c: In function 'Solve':
cluedo.c:3:13: warning: implicit declaration of function 'Theory' [-Wimplicit-function-declaration]
    3 |     int n = Theory(i, j, k);
      |             ^~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...