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"
#include <bits/stdc++.h>
using namespace std;
void play()
{
vector<char> val(50);
for (int i = 0; i < 50; i++)
val[i] = faceup(i+1);
vector<bool> done(50, false);
for (int i = 0; i < 50; i++)
{
if (done[i]) continue;
for (int j = i + 1; j < 50; j++)
if (val[j] == val[i])
{
done[i] = done[j] = true;
faceup(i);
faceup(j);
break;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |