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>
using namespace std;
#include "memory.h"
#include "grader.h"
#define N 26
vector<int> v[N];
void play(){
int i;
for(i=1;i<=50;i+=2){
char a,b;
a=faceup(i);
b=faceup(i+1);
if(a!=b)v[a-'A'].push_back(i),v[b-'A'].push_back(i+1);
}
for(i=0;i<26;i++)if(v[i].size())faceup(v[i][0]),faceup(v[i][1]);
return ;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |