# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1012020 | deera | Memory (IOI10_memory) | C++14 | 0 ms | 0 KiB |
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 <bits/stdc++.h>
using namespace std;
#include <memory.h>
char faceup(int n);
vector<int> cards[51];
int main() {
for (int i = 1; i <= 50; i++) {
cards[faceup(i) - 'A'].push_back(i);
}
for (auto i: cards) {
if (i.size() == 2) {
faceup(i[0]);
faceup(i[1]);
}
}
}