Submission #715509

#TimeUsernameProblemLanguageResultExecution timeMemory
715509vjudge1Cluedo (IOI10_cluedo)C++17
100 / 100
13 ms256 KiB
#include "grader.h"
#include "cluedo.h"

void Solve(){
   int i=1,j=1,k=1,chk;
   while(1)
   {
       chk=Theory(i,j,k);
       if(chk==0)
       {
           return;
       }
       if(chk==1)
       {
           i++;
           if(i>6) i-=6;
       }
       if(chk==2)
       {
           j++;
           if(j>10) j-=10;
       }
       if(chk==3)
       {
           k++;
           if(k>6) k-=6;
       }
   }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...