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

#TimeUsernameProblemLanguageResultExecution timeMemory
199523L01Memory (IOI10_memory)C++17
100 / 100
7 ms504 KiB
#include "grader.h" #include "memory.h" int par[26],tpares; void play() { for(int i=1;tpares<25 and i<=50;i+=2) { char c1,c2; c1=faceup(i); if(par[c1-'A'+1]==0) { par[c1-'A'+1]=i; c2=faceup(i+1); if(par[c2-'A'+1]==0) { par[c2-'A'+1]=i+1; } else { if(c1!=c2) i--; else tpares++; } } else { c2=faceup(par[c1-'A'+1]); i--; tpares++; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...