Submission #231725

#TimeUsernameProblemLanguageResultExecution timeMemory
231725AlexLuchianovMemory (IOI10_memory)C++14
100 / 100
6 ms432 KiB
#include "grader.h"
#include "memory.h"

int const nmax = 50;
char v[1 + nmax * 2];

void play() {
  for(int i = 1; i <= nmax; i++)
    v[i] = faceup(i);
  for(int i = 1; i <= nmax; i++)
    for(int j = i + 1; j <= nmax; j++)
      if(v[i] == v[j]){
        faceup(i);
        faceup(j);
      }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...