# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1134189 | lopkus | Memory (IOI10_memory) | C++20 | 2 ms | 408 KiB |
#include <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
void play() {
vector<int> was(51, 0);
for(int i = 1; i <= 50; i++) {
if(was[i]) {
continue;
}
for(int j = i + 1; j <= 50; j++) {
if(was[j]) {
continue;
}
char a = faceup(i);
char b = faceup(j);
if(a == b) {
was[i] = 1;
was[j] = 1;
break;
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |