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;
int Theory(int& M,int& L,int& W){
cin>>Murderer>>Location>>Weapon;
if (M!=Murderer){
return 1;
}
else if (L!=Location){
return 2;
}
else if (W!=Weapon){
return 3;
}
else{
return 0;
}
}
void Solve(){
int r;
while (r!=0){
r = Theory(1,2,3);
if (r == 0) return;
} while (r!=0){
r = Theory(3,2,1);
if (r == 0) return;
} while (r!=0){
r = Theory(4,4,4);
if (r == 0) return;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |