# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
502147 | dnaux | 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 <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;;
void play(){
map<char,int> mymp;
vector<pair<int,int>> ans;
for(int i = 1; i <= 50; i++){
char c = faceup(i);
if(mymp[c])ans.pb(mp(mymp[c],i));
else mymp[c] = i;
}
for(auto i:ans){
faceup(i.first);
faceup(i.second);
}
return;
}