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 <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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |