# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
956079 | CaiWinDao | Memory (IOI10_memory) | C++17 | 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 <map>
#include <vector>
using namespace std;
void play() {
map<char, vector<int> > pos;
for (int i = 1; i <= 50; i++) {
char card = faceup(i);
pos[card].push_back(i);
}
for (auto& p: pos) {
vector<int> v = p.second;
faceup(v[0]);
faceup(v[1]);
}
}