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>
using namespace std;
void play() {
int mem['Z'+1];
fill(mem,mem+('Z'+1),0);
for(int i=1;i<=50;i+=2){
int a = faceup(i);
int b = faceup(i+1);
if(a!=b){
if(mem[a]==0){
mem[a]=i;
}else{
faceup(i);
faceup(mem[a]);
}
if(mem[b]==0){
mem[b]=i+1;
}else{
faceup(i);
faceup(mem[b]);
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |