Submission #1223583

#TimeUsernameProblemLanguageResultExecution timeMemory
1223583islam_2010Cluedo (IOI10_cluedo)C++20
0 / 100
0 ms416 KiB
#include"grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;




void Solve(){
    int f, s, t;
    for(int i = 1; i <= 6; i++){
        int a = Theory(i, 1, 1);
        if(a==0){
            return;
        }
        if(a!=1){
            f = i;
            break;
        }
    }for(int i = 1; i <= 10; i++){
        int a = Theory(f, i, 1);
        if(a==0){
            return;
        }
        if(a!=2){
            s = i;
            break;
        }
    }for(int i = 1; i <= 6; i++){
        int a = Theory(f, s, i);
        if(a==0){
            return;
        }
        if(a!=3){
            t = i;
            break;
        }
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...