# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
367323 | Limay123 | Cluedo (IOI10_cluedo) | C++14 | 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<bits/stdc++.h>
using namespace std;
vector<bool>asesino (6,true);
vector<bool>lugar (10,true);
vector<bool>arma (6,true);
int n,a,l,as;
//n = 1 arma lugar
//n = 2 asesino arma
//n = 3 asesino lugar
bool respuesta(){
cin >> n;
if(n == 0){
return false;
}
else{
if(n == 1){
asesino[as] = false;
}
else if(n == 2){
lugar[l] = false;
}
else if(n == 3){
arma[a] = false;
}
return true;
}
}
void buscando(){
for(a = 1; a <= 6; a++){
for(l = 1; l <= 10; l++){
for(as = 1; as <= 6; as++){
cout << as << " " << l << " " << a << "\n";
if(!respuesta()){
cout << as << " " << l << " " << a << "\n";
return;
}
}
}
}
}
int main(){
buscando();
return 0;
}