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 <map>
void play() {
int i;
char a;
std::map<char, std::pair<int, int> > Pos;
for (i=1; i<=50; ++i) {
a = faceup(i);
if(Pos.count(a)==0)
{
Pos[a].first = i;
}
else
{
Pos[a].second = i;
}
}
for(auto card : Pos)
{
faceup(card.second.first);
faceup(card.second.second);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |