Submission #1124956

#TimeUsernameProblemLanguageResultExecution timeMemory
1124956pedrohcfMemory (IOI10_memory)C++20
100 / 100
1 ms412 KiB
#include "memory.h" #include "grader.h" #include <bits/stdc++.h> using namespace std; #define pii pair<int, int> void play() { map<char, int> found; queue<pii> q; int face_up = 0; for (int i = 1; i <= 50; i++) { char card = faceup(i); face_up++; if (found.find(card) != found.end()) { if (face_up == 1) { faceup(found[card]); face_up++; } else { faceup(i); faceup(found[card]); } } found[card] = i; face_up %= 2; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...