# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
367323 | Limay123 | Cluedo (IOI10_cluedo) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
}