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"
#define N 25
void play() {
static int ii[N], jj[N];
int i;
for (i = 0; i < N; i++) {
int a = faceup(i * 2 + 1) - 'A', b = faceup(i * 2 + 2) - 'A';
if (!ii[a])
ii[a] = i * 2 + 1;
else
jj[a] = i * 2 + 1;
if (!ii[b])
ii[b] = i * 2 + 2;
else
jj[b] = i * 2 + 2;
}
for (i = 0; i < N; i++)
faceup(ii[i]), faceup(jj[i]);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |