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[int(c)-64]==0){
poscicion_1[int(c)-64]=i;
}else{
poscicion_2[int(c)-64]=i;
}
c=faceup(fin);
if(poscicion_1[int(c)-64]==0){
poscicion_1[int(c)-64]=fin;
}else{
poscicion_2[int(c)-64]=fin;
}
ini++;
fin--;
}
for(int i=1;i<=25;i++){
faceup(poscicion_1[i]);
faceup(poscicion_2[i]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |