# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
372568 | Christopher_Rdz | Memory (IOI10_memory) | C++14 | 3 ms | 380 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"
char cubeta[52];
int aux[52];
void play() {
char a, b;
int pos = 1;
for (int i = 1; i <= 50; i++){
a = faceup(i);
cubeta[i] = a;
}
for (int i = 1; i <= 50; i++){
for (int j = 1; j <= 50; j++){
if (i != j){
if (aux[i] == 0 and aux[j] == 0){
if (cubeta[i] == cubeta[j]){
faceup(i);
faceup(j);
aux[i] = 1;
aux[j] = 1;
}
}
}
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |