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>
using namespace std;
pair <int, int> positions[25];
void play() {
for (int i = 0; i < 25; i++) {
positions[i] = {0, 0};
}
for (int i = 1; i <= 50; i++) {
char a = faceup(i);
int cod = a - 'a';
if (positions[cod].first) {
positions[cod].second = i;
}
else {
positions[cod].first = i;
}
}
for (int i = 0; i < 25; i++) {
faceup(positions[i].first);
faceup(positions[i].second);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |