제출 #1231822

#제출 시각아이디문제언어결과실행 시간메모리
1231822countlessCluedo (IOI10_cluedo)C++20
100 / 100
3 ms408 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef long double ld;

#define sp <<" "<<
#define endl "\n"

void Solve() {
    set<int> M, L, W;
    for (int i = 1; i <= 6; i++) M.insert(i);
    for (int i = 1; i <= 10; i++) L.insert(i);
    for (int i = 1; i <= 6; i++) W.insert(i);

    while (true) {
        auto m = M.begin();
        auto l = L.begin();
        auto w = W.begin();

        int res = Theory(*m, *l, *w);

        if (res == 0) {
            return;
        } else {
            if (res == 1) {
                M.erase(m);
            } else

            if (res == 2) {
                L.erase(l);
            } else
            
            if (res == 3) {
                W.erase(w);
            } else assert(0);
        }
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...