# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
372545 | AlexRex0 | Memory (IOI10_memory) | C++14 | 2 ms | 256 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"
void play() {
char arre[52];
bool encontre[52];
for(int i = 1; i <= 50; ++i){
encontre[i] = false;
}
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;
}
}
char a, b;
for(int i = 1; i <= n; ++i){
if(!encontre[i]){
for(int j = i + 1; j <= n; ++j){
if(arre[i] == arre[j]){
a = faceup(i);
b = faceup(j);
encontre[i] = true;
encontre[j] = true;
}
}
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |