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

#TimeUsernameProblemLanguageResultExecution timeMemory
252834SamAndMemory (IOI10_memory)C++17
100 / 100
5 ms288 KiB
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include "grader.h" #include "memory.h" using namespace std; int a[30]; void play() { int i, k = 0; char b; for (i = 1; i <= 50; ++i) { b = faceup(i); ++k; if (a[b - 'A']) { if (k % 2 == 1) { faceup(a[b - 'A']); ++k; } else { faceup(i); ++k; faceup(a[b - 'A']); ++k; } } else { a[b - 'A'] = i; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...