# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
590728 | l_reho | 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;
map<int, int> mp;
void play() {
for(int i = 1; i <= 50; i++){
int c = faceup(i);
if(!mp[c]) mp[c] = i;
else faceup(mp[c]), mp[c] = 0;
}
}