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 <bits/stdc++.h>
using namespace std;
void play() {
int i;
char a, b;
vector<char> v(51);
for (i = 1; i < 50; i += 2) {
a = faceup(i);
b = faceup(i + 1);
v[i] = a;
v[i + 1] = b;
}
for (i = 1; i < 50; i++) {
for (int j = i + 1; j <= 50; j++) {
if (v[i] == v[j]) {
faceup(i);
faceup(j);
break;
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |