# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
518492 | nurlitadf | Memory (IOI10_memory) | C++17 | 2 ms | 340 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 "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;
void play() {
int i;
vector<int> card(25, 0);
for (int i = 1; i < 50; i += 2) {
char a = faceup(i);
char b = faceup(i + 1);
if(a != b) {
if(card[a - 'A']) {
faceup(i);
faceup(card[a - 'A']);
} else {
card[a - 'A'] = i;
}
if(card[b - 'A']) {
faceup(i + 1);
faceup(card[b - 'A']);
} else {
card[b - 'A'] = i + 1;
}
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |