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 <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
constexpr bool typetest = 0;
constexpr int N = 4e5 + 2;
#include "grader.h"
#include "memory.h"
void play()
{
vector<int> a[50];
for (int i = 1; i <= 50; i += 2)
{
int x = faceup(i) - 'A',
y = faceup(i + 1) - 'A';
a[x].emplace_back(i);
a[y].emplace_back(i + 1);
if (x == y)
a[x].clear();
}
for (int i = 0; i < 25; ++i)
if (!a[i].empty())
{
faceup(a[i][0]);
faceup(a[i][1]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |