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

#TimeUsernameProblemLanguageResultExecution timeMemory
488495M_WMemory (IOI10_memory)C++14
100 / 100
2 ms260 KiB
#include <bits/stdc++.h> #include "grader.h" #include "memory.h" using namespace std; queue<int> q[25]; void play(){ for(int i = 1; i <= 50; i += 2){ int a = faceup(i) - 'A'; int b = faceup(i + 1) - 'A'; if(a != b){ q[a].push(i); q[b].push(i + 1); } } for(int i = 0; i < 25; i++){ while(!q[i].empty()){ faceup(q[i].front()); q[i].pop(); } } return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...