# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1013303 | hasan2006 | Cluedo (IOI10_cluedo) | C++17 | 0 ms | 0 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 "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
void Solve(){
deque<int> v[4];
for(int i = 1; i <= 6; i++)
v[0].push_back(i);
for(int i = 1; i <= 10; i++)
v[1].push_back(i);
for(int i = 1; i <= 6; i++)
v[2].push_back(i);
while(1){
int a[4];
for(int i = 1; i <= 3; i++)
a[i] = v[i].back();
int x = Theory(a[0] , a[1] , a[2]);
if(!x) return;
v[x].pop_back();
}
}