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 "memory.h"
#include "grader.h"
#include <stdio.h>
#include <stdlib.h>
void play() {
int index[50][2];
int lt, k;
int i;
char r;
for (lt = 0; lt < 25; ++lt) {
for (k = 0; k < 2; ++k) {
index[lt][k] = 0;
}
}
for (i = 1; i <= 50; ++i) {
r = faceup(i);
lt = (int)(r) -(int)('A');
k = (index[lt][0]) ? 1 : 0;
index[lt][k] = i;
}
for (lt = 0; lt < 25; ++lt) {
faceup( index[lt][0] );
faceup( index[lt][1] );
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |