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;
#define rep(i,n) for(int i=0; i<n; i++)
#define rep2(i,a,b) for(int i=a; i<b; i++)
#define all(x) x.begin(),x.end()
using ll=long long;
#include "grader.h"
#include "memory.h"
void play() {
char a,b;
vector<vector<ll>> cards(25);
rep(i,25){
a=faceup(i*2+1);
b=faceup(i*2+2);
if(a!=b){
cards[a-'A'].push_back(i*2+1);
cards[b-'A'].push_back(i*2+2);
}
}
rep(i,25){
for(int j:cards[i]){
faceup(j);
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |