# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
342090 | Alma | Cluedo (IOI10_cluedo) | C++14 | 0 ms | 0 KiB |
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 <iostream>
#include <cluedo.h>
#include <grader.h>
using namespace std;
int Solve (int M, int L, int W) {
M = 1; L = 1; W = 1;
while (Theory (M, L, W) != 0) {
if (Theory (M, L, W) == 1) { M++; }
else if (Theory (M, L, W) == 2) { L++; }
else { W++; }
}
return Theory (M, L, W);
}