# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
720331 | Yell0 | 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 "memory.h"
using namespace std;
void play() {
map<char,vector<int>> mp;
for(int i=1;i<=50;++i) {
char c=faceup(i);
mp[c].push_back(i);
}
for(int i='A';i<'Z';++i) {
if(mp[i][1]%2==0&&mp[i][0]==mp[i][1]-1) continue;
faceup(mp[i][0]);
faceup(mp[i][1]);
}
}