# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
964959 | marinaluca | 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 "grader.h"
#include "memory.h"
using namespace std;
void play (){
int NMAX = 50;
vector <int> v;
for (int i = 0; i < 50; ++ i){
v[i] = faceup(i + 1);
}
for (int i = 0; i < NMAX; ++ i){
for (int j = i + 1; j < NMAX; ++ j){
if (v[i] == v[j]){
faceup(i + 1);
faceup(j + 1);
}
}
}
}