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

#TimeUsernameProblemLanguageResultExecution timeMemory
430909ahmeterenMemory (IOI10_memory)C++14
100 / 100
3 ms276 KiB
#include "grader.h" #include "memory.h" #include<bits/stdc++.h> using namespace std; void play() { vector<char> vec(55); vector<bool> used(51, 0); for(int i = 1; i <= 50; i++) { vec[i] = faceup(i); if(i%2 == 0 and vec[i] == vec[i-1]) { used[i] = used[i-1] = true; } } for(int i = 1;i <= 50; i++) { for(int j = i+1; j <= 50; j++) { if(!used[i] and !used[j] and vec[i] == vec[j]) { faceup(i), faceup(j); used[i] = used[j] = true; break; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...