# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
367324 |
2021-02-16T21:32:33 Z |
Limay123 |
Cluedo (IOI10_cluedo) |
C++14 |
|
0 ms |
0 KB |
#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 Solve(){
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(){
Solve();
return 0;
}
Compilation message
/tmp/ccRVq6Tz.o: In function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'
/tmp/cco03bU9.o:cluedo.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status