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 "grader.h"
#include "cluedo.h"
bool bad[11][3];
void Solve(){
for (int i = 0; i < 3; i++) {
for (int j = 0; j <= 10; j++) {
bad[j][i] = false;
}
}
for (int a = 1; a <= 6; a++) {
for (int b = 1; b <= 10; b++) {
for (int c = 1; c <= 6; c++) {
if (bad[a][0] || bad[b][1] || bad[c][2]) continue;
int resp = Theory(a, b, c);
if (resp == 0) {
return;
}
if (resp == 1) bad[a][0] = true;
if (resp == 2) bad[b][1] = true;
if (resp == 3) bad[c][2] = true;
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |