# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
796289 | I_Love_EliskaM_ | Memory (IOI10_memory) | C++14 | 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 "memory.h"
#include <bits/stdc++.h>
using namespace std;
#define forn(i,n) for(int i=0;i<n;++i)
char a[50];
int vis[50];
void play() {
int n=50;
forn(i,n) a[i]=faceup(i+1);
forn(i,n) {
if (vis[i]) continue;
forn(j,n) {
if (a[i]==a[j]) {
vis[i]=vis[j]=1;
faceup(i+1);
faceup(j+1);
}
}
}
}