| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1324424 | sh_qaxxorov_571 | Cluedo (IOI10_cluedo) | C++20 | 0 ms | 0 KiB |
#include "cluedo.h"
void Solve() {
int M = 1; // Murderer
int L = 1; // Location
int W = 1; // Weapon
while (true) {
int result = Theory(M, L, W);
if (result == 0) {
// Correct combination found
return;
}
else if (result == 1) {
M++; // Murderer is wrong
}
else if (result == 2) {
L++; // Location is wrong
}
else if (result == 3) {
W++; // Weapon is wrong
}
}
}
