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;
#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);
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |