#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |