# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
372548 | Christopher_Rdz | Memory (IOI10_memory) | C++14 | 0 ms | 0 KiB |
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[102];
inr cubeta2[102];
void play() {
char a, b;
for (int i = 1; i <= 50; i+= 2){
a = faceup(i);
if (cubeta[int(a)] == 0){
cubeta[int(a)] = i;
}else{
cubeta2[int(a)] = i;
}
b = faceup(i+1);
if (cubeta[int(b)] == 0){
cubeta[int(b)] = i;
}else{
cubeta2[int(b)] = i;
}
}
for (int i = 65; i <= 89; i++){
a = faceup(cubeta[i]);
b = faceup(cubeta2[i]);
}
}