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<bits/stdc++.h>
#include "cluedo.h"
#include "grader.h"
void Solve(){
int st1, st2, st3;
st1=rand()%6 + 1;
st2=rand()%10 + 1;
st3=rand()%6 + 1;
while(true){
int r = Theory(st1, st2, st3);
if(r==0)return;
if(r==1){
st1++;
if(st1>6)st1-=6;
}
if(r==2){
st2++;
if(st2>10)st2-=10;
}
if(r==3){
st3++;
if(st3>6)st3-=6;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |