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(){
set<int> a[3];
for(int i = 1;i <= 10;i++){
if(i <= 6){
a[0].insert(i);
a[2].insert(i);
}
a[1].insert(i);
}
while(a[0].size()+a[1].size()+a[2].size() > 3){
int wow = Theory(*a[0].begin(),*a[1].begin(),*a[2].begin());
if(wow == 0){
return;
}
wow--;
a[wow].erase(a[wow].begin());
}
Theory(*a[0].begin(),*a[1].begin(),*a[2].begin());
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |