Submission #301279

#TimeUsernameProblemLanguageResultExecution timeMemory
301279dolijanCluedo (IOI10_cluedo)C++14
100 / 100
15 ms384 KiB
#include <bits/stdc++.h> #include "grader.h" #include "cluedo.h" using namespace std; void Solve(){ stack<int> a,b,c; for(int i=1;i<=6;i++) a.push(i); for(int i=1;i<=10;i++) b.push(i); for(int i=1;i<=6;i++) c.push(i); while(true) { int aa=a.top(),bb=b.top(),cc=c.top(); int rez=Theory(aa,bb,cc); if(rez==0) break; else if(rez==1) a.pop(); else if(rez==2) b.pop(); else c.pop(); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...