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"
bool a[11],b[11],c[11];
void Solve(){
int i,j,l,x;
for(i=1;i<=10;i++){
a[i]=0;
b[i]=0;
c[i]=0;
}
for(l=1;l<=6;l++){
for(i=1;i<=10;i++){
for(j=1;j<=6;j++){
if(a[l] || b[i] || c[j]) continue;
x=Theory(l,i,j);
if(x==1) a[l]=1;
if(x==2) b[i]=1;
if(x==3) c[j]=1;
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |