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