Submission #372540

#TimeUsernameProblemLanguageResultExecution timeMemory
372540AlexRex0Memory (IOI10_memory)C++14
0 / 100
1 ms256 KiB
#include "grader.h" #include "memory.h" void play() { char arre[52]; bool encontre[52]; int n = 50; for(int i = 1; i <= n; ++i){ arre[i] = faceup(i); if(arre[i] == arre[i - 1]){ encontre[i] = true; encontre[i - 1] = true; } } for(int i = 1; i <= n; ++i){ if(!encontre[i]){ for(int j = i + 1; j <= n; ++j){ if(arre[i] == arre[j]){ faceup(i); faceup(j); encontre[i] = true; encontre[j] = true; } } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...