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"
void play() {
char arre[52];
bool visitado[52];
for(int i = 1; i <= 50; ++i){
visitado[i] = false;
}
for(int i = 1; i <= 50; ++i){
arre[i] = faceup(i);
}
for(int i = 1; i <= 50; ++i ){
if(!visitado[i]){
for(int j = i + 1; j <= 50; ++j){
if(arre[i] == arre[j]){
visitado[i] = true;
visitado[j] = true;
faceup(i);
faceup(j);
}
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |