This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/**
____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|
**/
#include <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
typedef long long ll;
void play ()
{
int p[25];
int cards[50];
for(int i = 0; i < 50; i++)
{
cards[i] = faceup(i + 1) - 'A';
p[cards[i]] = i;
}
for(int i = 0; i < 50; i++)
if(i != p[cards[i]])
{
faceup(i + 1);
faceup(p[cards[i]] + 1);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |