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

#TimeUsernameProblemLanguageResultExecution timeMemory
1103807ThylOneMemory (IOI10_memory)C++14
100 / 100
2 ms552 KiB
#include "grader.h" #include "memory.h" #include<bits/stdc++.h> using namespace std; void play() { int mem['Z'+1]; fill(mem,mem+('Z'+1),0); for(int i=1;i<=50;i+=2){ int a = faceup(i); int b = faceup(i+1); if(a!=b){ if(mem[a]==0){ mem[a]=i; }else{ faceup(i); faceup(mem[a]); mem[a] = 225; } if(mem[b]==0){ mem[b]=i+1; }else{ faceup(i+1); faceup(mem[b]); mem[b]=225; } }else{ mem[a]=225; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...