# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
341490 | 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 contador=0,M,L,W,contador;
int Theory(int A,int B,int C){
cin>>M>>L>>W;
if (M!=A){
return 1;
}
else if (L!=B){
return 2;
}
else if (W!=C){
return 3;
}
else{
return 0;
}
}
void Solve(){
int r;
r = Theory(1,2,3);
if (r == 0) return;
else if (r !=0){
r = Theory (1,2,3);
contador++;
}
cout<<"OK "<<contador<<endl;
contador=0;
r = Theory(3,2,1);
if (r == 0) return ;
else if (r !=0){
r=Theory (3,2,1);
contador++;
}
cout<<"OK "<<contador<<endl;
contador=0;
r = Theory(4,4,4);
if (r == 0) return ;
else if (r !=0){
r=Theory (4,4,4);
contador++;
}
cout<<"OK "<<contador<<endl;
}