Submission #1041151

#TimeUsernameProblemLanguageResultExecution timeMemory
1041151kheiraCluedo (IOI10_cluedo)C++14
100 / 100
6 ms344 KiB
#include "cluedo.h"
#include "grader.h"
using namespace std;
 
void Solve() {
    int M = 1;
    int L = 1;
    int W = 1;
 
    while (true) {
        int result = Theory(M, L, W);
        
        if (result == 0) {
            return;
        } 
        else if (result == 1) {
            M++;
        } 
        else if (result == 2) {
            L++;
        } 
        else if (result == 3) {
            W++;
        }
        
        if (M > 6) M = 1;
        if (L > 10) L = 1;
        if (W > 6) W = 1;
    }
    return;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...