# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
341474 | Iwanttobreakfree | Cluedo (IOI10_cluedo) | C++98 | 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 <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include "grader.h"
#include "cluedo.h"
using namespace std;
int Murderer,Location,Weapon,A,B,C;
int Solve(int M,int L,int W){
if (M!=Murderer){
return 1;
}
else if (L!=Location){
return 2;
}
else if (W!=Weapon){
return 3;
}
else{
return 0;
}
}
int main(){
cin>>Murderer>>Location>>Weapon;
while(Solve(A,B,C)!=0){
cin>>A>>B>>C;
cout<<Solve(A,B,C)<<endl;
}
}