Submission #468778

#TimeUsernameProblemLanguageResultExecution timeMemory
468778a_aguiloMemory (IOI10_memory)C++14
0 / 100
1 ms200 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { int candies = 0; map <char, int> M; set <int> asked; set <char> received; char nw; while (candies < 25){ int i = 1; while (i <= 25){ char c = faceup (i); if (received.find(c) != received.end()){ faceup (M[c]); candies ++; } else{ received.insert(c); M[c] = i; ++i; nw = faceup (i); if (nw == c){ candies ++; } else { i--; } } ++i; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...