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"
int cubeta[52];
int cubeta2[52];
void play() {
char a, b;
int pos = 1;
for (int i = 1; i <= 25; i++){
a = faceup(pos);
if (cubeta[int(a) - 64] == 0){
cubeta[int(a)] = pos;
}else{
cubeta2[int(a) - 64] = pos;
}
pos++;
b = faceup(pos);
if (cubeta[int(b) - 64] == 0){
cubeta[int(b)] = pos;
}else{
cubeta2[int(b) - 64] = pos;
}
}
for (int i = 1; i <= 25; i++){
faceup(cubeta[i]);
faceup(cubeta2[i]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |