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"
#include<bits/stdc++.h>
using namespace std ;
void Solve(){
int f ;
for(int i = 1 ; i <= 6 ; i ++){
f = Theory(i , i % 6 + 1 , i % 6 + 1) ;
if(f != i)break;
if(i == 5){
f = 6 ;
break;
}
}
int s ;
for(int i = 1 ; i < 10 ; i ++){
s = Theory(f , i , i % 6 + 1);
if(s != i)break;
if(i == 9)s = 10 ;
}
for(int i = 1 ; i < 6 ; i ++){
int t = Theory(f , s , i);
if(t == 0)return ;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |