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 "grader.h"
#include "cluedo.h"
void Solve(){
int i=1,j=1,k=1;
while(1)
{
if(Theory(i,j,k)==1)
{
i++;
if(i>6) i-=6;
}
if(Theory(i,j,k)==2)
{
j++;
if(j>10) j-=10;
}
if(Theory(i,j,k)==3)
{
k++;
if(k>6) k-=6;
}
if(Theory(i,j,k)==0)
{
return;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |