# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
474058 | ValiAntonie | 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.
void play() {
// faceup();
int ap[100], path[100], nr;
for(int i=1;i<=50;i++){
char x = faceup(i);
if(ap[x] > 3)
ap[x] = 0;
ap[x]++;
if(ap[x] == 1)
path[x] = i;
else{
if(i % 2 == 1){
faceup(path[x]);
faceup(i);
}
else{
faceup(path[x]);
faceup(i);
}
}
}
}