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

#TimeUsernameProblemLanguageResultExecution timeMemory
523592dron_rpMemory (IOI10_memory)C++14
100 / 100
2 ms288 KiB
#include "grader.h" #include "memory.h" #include <vector> #include <iostream> using namespace std; void play() { vector<pair<int, int>> a(25, {0, 0}); for (int i = 1; i<=50; i+=2){ char x = faceup(i); char y = faceup(i+1); if (a[x-'A'].first == 0){ a[x-'A'].first = i; } else{ a[x-'A'].second = i; } if (a[y-'A'].first == 0){ a[y-'A'].first = i+1; } else{ a[y-'A'].second = i+1; } } int candies = 0; for (int i = 0; i<25; i++){ char x = faceup(a[i].first); char y = faceup(a[i].second); candies += (x == y); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...