# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
698009 | stevancv | 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>
#include "memory.h"
using namespace std;
void play() {
vector<int> l(25), r(25);
for (int i = 1; i <= 50; i++) {
int x = faceup(i);
if (l[x] == 0) l[x] = i;
else r[x] = i;
}
for (int i = 1; i <= 25; i++) {
faceup(l[i]); faceup(r[i]);
}
}