# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
372550 | meperdonas203 | Memory (IOI10_memory) | C++17 | 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"
void play() {
int poscicion_1[52];
int poscicion_2[52];
for(int i=1;i<=50;i++){
poscicion_1[i]=0;
poscicion_2[i]=0;
}
char c;
int ini=1;
int fin=50;
for(int i=1;i<=25;i++){
c=faceup(ini);
if(poscicion_1[c-64]>0){
poscicion_1[c-64]=i;
}else{
poscicion_2[c-64]=i;
}
c=faceup[fin];
if(poscicion_1[c-64]>0){
poscicion_1[c-64]=fin;
}else{
poscicion_2[c-64]=fin;
}
ini++;
fin--;
}
for(int i=1;i<=50;i++){
faceup(poscicion_1[i]);
faceup(poscicion_2[i]);
}
}