제출 #468784

#제출 시각아이디문제언어결과실행 시간메모리
468784a_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 if (received.find(c) != received.end()) { i--; } } ++i; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...