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

#TimeUsernameProblemLanguageResultExecution timeMemory
201472dolphingarlicMemory (IOI10_memory)C++14
100 / 100
8 ms408 KiB
#include <vector> #include "grader.h" #include "memory.h" bool visited[25]; std::vector<int> pos[25]; void play() { int i; char a, b; for (int i = 1; i <= 25; i++) { a = faceup(2 * i - 1); b = faceup(2 * i); if (a == b) visited[a - 'A'] = true; else { pos[a - 'A'].push_back(2 * i - 1); pos[b - 'A'].push_back(2 * i); } } for (int i = 0; i < 25; i++) if (!visited[i]) { a = faceup(pos[i][0]); b = faceup(pos[i][1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:8: warning: unused variable 'i' [-Wunused-variable]
    int i;
        ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...