제출 #978372

#제출 시각아이디문제언어결과실행 시간메모리
978372tamir1Cluedo (IOI10_cluedo)C++17
100 / 100
11 ms592 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...