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 fst[110] = {}, snd[110] = {};
for (int i = 1; i <= 50; i += 2) {
int c1 = faceup(i);
int c2 = faceup(i + 1);
if (fst[c1]) snd[c1] = i;
else fst[c1] = i;
if (fst[c2]) snd[c2] = i + 1;
else fst[c2] = i + 1;
}
for (int c = 'A'; c <= 'Y'; c++) {
faceup(fst[c]); faceup(snd[c]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |