(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 #1088627

#TimeUsernameProblemLanguageResultExecution timeMemory
1088627toast12Memory (IOI10_memory)C++14
100 / 100
1 ms596 KiB
#include "grader.h" #include "memory.h" #include <vector> using namespace std; void play() { vector<pair<int, int>> ans(25); char a, b; for (int i = 1; i <= 25; ++i) { a = faceup(i); b = faceup(51-i); if (ans[a-'A'].first != 0) { ans[a-'A'].second = i; } else { ans[a-'A'].first = i; } if (ans[b-'A'].first != 0) { ans[b-'A'].second = 51-i; } else { ans[b-'A'].first = 51-i; } } for (int i = 0; i < 25; i++) { faceup(ans[i].first); faceup(ans[i].second); } return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...