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

#TimeUsernameProblemLanguageResultExecution timeMemory
426349gouravkhungerMemory (IOI10_memory)C++17
100 / 100
3 ms256 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { map<char, pair<int, int>> m; char c = 'A'; for(int i = 1; i<=25; i++) { m[c].first = -1; m[c].second = -1; c++; } for(int i = 1; i<=50; i++){ c = faceup(i); if(m[c].first == -1) m[c].first = i; else if(m[c].second == -1) m[c].second = i; } for(auto p : m) { faceup(p.second.first); faceup(p.second.second); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...