# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
717660 | VMaksimoski008 | 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 "grader.h"
#include "memory.h"
void play() {
int candies = 0;
char a, b;
set<int> used;
for(int i=1; i<=50; i++)
{
for(int j=1; j<=50; j++)
{
if(i != j && used.find(i) == used.end() && used.find(j) == used.end())
{
a = faceup(i);
b = faceup(j);
if(a == b)
{
candies++;
used.insert(i);
used.insert(j);
}
if(candies == 25)
return ;
}
}
}
}