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