제출 #1268513

#제출 시각아이디문제언어결과실행 시간메모리
1268513atillamaCluedo (IOI10_cluedo)C++20
0 / 100
0 ms416 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>

using namespace std;

void Solve(){
    set<int> st1, st2, st3;
    for(int i = 1; i <= 6; i++){
        for(int j = 1; j <= 10; j++){
            for(int k = 1; k <= 6; k++){
                while(st1.find(i) != st1.end()) i++;
                while(st2.find(j) != st2.end()) j++;
                while(st3.find(k) != st3.end()) k++;
                if(i > 6 || j > 10 || k > 6) continue;
                int r = Theory(i, j, k);
                if(r == 0) return;
                if(r == 1) st1.insert(i);
                if(r == 2) st2.insert(j);
                if(r == 3) st3.insert(k);
            }
        }
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...