(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #372744

#TimeUsernameProblemLanguageResultExecution timeMemory
372744Drew_Memory (IOI10_memory)C++14
100 / 100
2 ms384 KiB
#include "grader.h" #include "memory.h" #include <vector> using namespace std; void play() { std :: vector<int> pos[25]; for (int i = 1; i <= 50; ++i) { char x = faceup(i); if (i % 2 == 0 && !pos[x - 'A'].empty() && (pos[x - 'A'].back()) % 2 == 1 && pos[x - 'A'].back() + 1 == i) pos[x - 'A'].clear(); else pos[x - 'A'].push_back(i); } for (int i = 0; i < 25; ++i) { for (int x : pos[i]) faceup(x); } return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...