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"
const int siz=51;
char slova[siz];
bool odg[siz];
void play() {
for(int i=1;i<siz;i+=2){
slova[i]=faceup(i),
slova[i+1]=faceup(i+1);
}
for(int i=1;i<siz;i++){
if(odg[i]) continue;
for(int j=i+1;j<siz;j++){
if(odg[j]) continue;
if(slova[i]!=slova[j]) continue;
faceup(i);
faceup(j);
odg[i]=true;
odg[j]=true;
break;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |