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 <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include "grader.h"
#include "memory.h"
using namespace std;
int a[30];
void play() {
int i, k = 0;
char b;
for (i = 1; i <= 50; ++i)
{
b = faceup(i);
++k;
if (a[b - 'A'])
{
if (k % 2 == 1)
{
faceup(a[b - 'A']);
++k;
}
else
{
faceup(i);
++k;
faceup(a[b - 'A']);
++k;
}
}
else
{
a[b - 'A'] = i;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |