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 "memory.h"
#include <bits/stdc++.h>
#define forn(i,n) for(int i = 0;i<n;i++)
#define ll long long
#define pb push_back
#define sz(a) a.size()
using namespace std;
void play() {
char a,b;
vector<vector<int>>c(25);
for(int i = 1;i<=50;i+=2){
a = faceup(i);
b = faceup(i+1);
if(a != b) {c[a-'a'].push_back(i+1); c[b-'a'].push_back(i+1);}
}
for(int i = 0;i<25;i++){
if(c[i].size()){
faceup(c[i][0]);
faceup(c[i][1]);
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |