Submission #552099

#TimeUsernameProblemLanguageResultExecution timeMemory
552099Trisanu_DasMemory (IOI10_memory)C++17
100 / 100
4 ms336 KiB
#include "grader.h" using namespace std; #include "memory.h" #include <bits/stdc++.h> void play() { // storing the positions of previously found values int pos[100] = {}; for(int i = 1; i <= 50; i++) { int card = faceup(i); // if not previously found check with others if(pos[card] == 0) pos[card] = i, faceup(i % 50 + 1); // but if found earlier, get a chocolate!! else faceup(pos[card]); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...