# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1182629 | hamzabc | Memory (IOI10_memory) | C++20 | 0 ms | 408 KiB |
#include "grader.h"
#ifndef LOCAL
#include "memory.h"
#endif
#include <bits/stdc++.h>
using namespace std;
void play() {
map<char, int> pos;
for (int i = 1; i <= 50;){
char k = faceup(i);
if (pos[k] != 0){
faceup(pos[k]);
i++;
}else{
pos[k] = i;
char u = faceup(i + 1);
if (pos[u] != 0){
faceup(i + 1);
faceup(pos[u]);
}else{
pos[u] = i + 1;
}
i += 2;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |