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() {
char arr[51];
int vis[51];
for (int i = 1; i <= 50; i++)
arr[i] = '0', vis[i] = 0;
for (int i = 1; i <= 50; i++)
{
arr[i] = faceup(i);
}
for (int i = 1; i <= 50; i++)
{
if (vis[i]) continue;
faceup(i);
for (int j = i+1; j <= 50; j++)
if (arr[i] == arr[j] && !vis[j]) faceup(j), vis[j] = 1;
}
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |