Submission #1012039

#TimeUsernameProblemLanguageResultExecution timeMemory
1012039deeraCluedo (IOI10_cluedo)C++14
100 / 100
8 ms596 KiB
#include <bits/stdc++.h>
using namespace std;

#include <cluedo.h>
int Theory(int M, int L, int W);

vector<int> ans;

void Solve() {
    ans.clear();
    for(int i = 0; i < 3; i++) 
        ans.push_back(1);

    while (true) {
        int x = Theory(ans[0], ans[1], ans[2]);
        if (x == 0) {
            return;
        }

        ans[x - 1]++;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...