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