# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
341948 | 2020-12-31T18:14:44 Z | Alma | Cluedo (IOI10_cluedo) | C++14 | 0 ms | 0 KB |
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <iomanip> #include <string> using namespace std; void solve () { int M = 1; int L = 1; int 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++; } } cout << "(" << M << ", " << L << ", " << W << ")" << endl; } int main() { solve(); }