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 <string>
using namespace std;
void play()
{
string cards(50, ' ');
for (int i = 0; i < 50; ++i) cards[i] = faceup(i + 1);
for (int i = 0; i < 50; ++i)
{
if (cards[i] != ' ')
{
faceup(i + 1);
for (int j = i + 1; j < 50; ++j)
{
if (cards[i] == cards[j])
{
faceup(j + 1);
cards[j] = ' ';
break;
}
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |