Submission #1182629

#TimeUsernameProblemLanguageResultExecution timeMemory
1182629hamzabcMemory (IOI10_memory)C++20
100 / 100
0 ms408 KiB
#include "grader.h" #ifndef LOCAL #include "memory.h" #endif #include <bits/stdc++.h> using namespace std; void play() { map<char, int> pos; for (int i = 1; i <= 50;){ char k = faceup(i); if (pos[k] != 0){ faceup(pos[k]); i++; }else{ pos[k] = i; char u = faceup(i + 1); if (pos[u] != 0){ faceup(i + 1); faceup(pos[u]); }else{ pos[u] = i + 1; } i += 2; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...