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 <iostream>
#include <vector>
using namespace std;
void play() {
vector<int> card_1; card_1.assign(25, 0);
vector<int> card_2; card_2.assign(25, 0);
for (int i = 1; i <= 50; i++) {
int position = faceup(i) - 'A';
if (card_1[position] == 0) {card_1[position] = i;}
else {card_2[position] = i;}
}
for (int j = 0; j < 25; j++) {
faceup(card_1[j]); faceup(card_2[j]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |