# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
662531 | esomer | 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"
#include "grader.h"
using namespace std;
#define ll long long
#define endl "\n"
const int MOD = 998244353;
void Solve(){
map<char, vector<int>> m;
for(int i = 1; i <= 50; i += 2){
m[faceup(i)].push_back(i);
m[faceup(i + 1)].push_back(i + 1);
}
for(auto p : m){
faceup(p.second[0]); faceup(p.second[1]);
}
return;
}