# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1213445 | Captain_Georgia | Cluedo (IOI10_cluedo) | C++20 | 7 ms | 412 KiB |
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
mt19937 rng(time(NULL));
void Solve () {
vector<int> tmp = {1, 1, 1}, tot = {6, 10, 6};
while (true) {
int res = Theory(tmp[0], tmp[1], tmp[2]);
if (res == 0) return;
for (int i = res - 1;i < 3;i ++) tmp[i] = rng() % tot[i] + 1;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |