# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1275736 | marckv | Memory (IOI10_memory) | C++20 | 2 ms | 404 KiB |
#include <bits/stdc++.h>
using namespace std;
// Provided by the grader (you don’t implement this)
char faceup(int position);
// You must implement this
void play() {
unordered_map<char, vector<int>> seen;
for (int i=1; i<=50; i++) {
char card = faceup(i);
seen[card].push_back(i);
}
for (auto const& [ch, vec] : seen) {
for (int x : vec) {
faceup(x);
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |