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<bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
#define pb push_back
int mark[55];
char c[55];
void play()
{
for(int i=1 ; i<=50 ; i++)
{
c[i] = faceup(i);
}
memset(mark, 0, sizeof mark);
for(int i=1 ; i<=50 ; i++)
{
if(mark[i]) continue ;
for(int j=i+1 ; j<=50 ; j++)
{
if(mark[j]) continue ;
if(c[i] == c[j])
{
faceup(i), faceup(j);
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |