Submission #974494

#TimeUsernameProblemLanguageResultExecution timeMemory
974494AlphaMale06Cluedo (IOI10_cluedo)C++17
100 / 100
7 ms596 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...