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 <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"
using namespace std;
void Solve ()
{
mt19937 generator(chrono::steady_clock::now().time_since_epoch().count());
vector <int> valoare({1 , 1 , 1}) , candidati({2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10});
while (int rezultat = Theory(valoare[0] , valoare[1] , valoare[2])) {
if (rezultat != 2)
{ valoare[rezultat - 1]++; }
else
{
const int locatie = generator() % candidati.size();
valoare[1] = candidati[locatie];
candidati.erase(candidati.begin() + locatie);
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |