This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> x[4];
inline void init() {
for (int i = 1; i <= 3; ++i) {
x[i].clear();
for (int j = 1; j <= 10; ++j) {
if (j > 6 && i != 2) break;
x[i].push_back(j);
}
}
}
void Solve(){
srand(time(NULL));
init();
int g[4];
g[1] = 1 + (rand() % 6), g[2] = 1 + (rand() % 10), g[3] = 1 + (rand() % 6);
while (true) {
int y = Theory(g[1], g[2], g[3]);
if (y == 0) break;
x[y].erase(find(x[y].begin(), x[y].end(), g[y]));
g[y] = x[y][rand() % (x[y].size())];
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |