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 "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
void Solve(){
//bool done=false;
//bool done2=false;
//bool done3=false;
int ptr=1;
int ptr2=1;
int ptr3=1;
while(1){
int hold=Theory(ptr,ptr2,ptr3);
if(hold==0) return;
if(hold==1) ptr++;
else if(hold==2) ptr2++;
else ptr3++;
cout << ptr << " " << ptr2 << " " << ptr3 << endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |