# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
768272 | simene | Cluedo (IOI10_cluedo) | C++14 | 11 ms | 208 KiB |
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 <stack>
void Solve(){
std::stack<int> murderers;
std::stack<int> rooms;
for (int i = 1; i < 11; i++)
{
rooms.push(i);
if (i < 7) murderers.push(i);
}
std::stack<int> weapons = murderers;
int r;
while (r = Theory(murderers.top(), rooms.top(), weapons.top()))
{
if (r == 1) murderers.pop();
if (r == 2) rooms.pop();
if (r == 3) weapons.pop();
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |