# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
669134 | Toxtaq | 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 "grader.h"
#include<bits/stdc++.h>
using namespace std;
void play(){
int cnt = 0;
map<char, pair<int, int>>mp;
for(int i = 1;i <= 50;++i){
char c = faceup(i);
if(mp[c].first <= 50 && mp[c].first >= 1)mp[c].second = i;
else mp[c].first = i;
}
for(auto i = mp.begin();i != mp.end();++i){
char c1 = (i->first);
char c2 = faceup(i->second);
cnt++;
if(cnt == 25)return;
}
}