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

#TimeUsernameProblemLanguageResultExecution timeMemory
411894BertedMemory (IOI10_memory)C++14
100 / 100
4 ms316 KiB
#include "memory.h" #include "grader.h" int ans[25][2]; void play() { for (int i = 1; i <= 50; i += 2) { int a = faceup(i) - 'A'; int b = faceup(i + 1) - 'A'; if (ans[a][0]) ans[a][1] = i; else ans[a][0] = i; if (ans[b][0]) ans[b][1] = i + 1; else ans[b][0] = i + 1; } for (int i = 0; i < 25; i++) { faceup(ans[i][0]); faceup(ans[i][1]); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...