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

#TimeUsernameProblemLanguageResultExecution timeMemory
372551meperdonas203Memory (IOI10_memory)C++17
100 / 100
2 ms384 KiB
#include "grader.h" #include "memory.h" void play() { int poscicion_1[52]; int poscicion_2[52]; for(int i=1;i<=50;i++){ poscicion_1[i]=0; poscicion_2[i]=0; } char c; int ini=1; int fin=50; for(int i=1;i<=25;i++){ c=faceup(ini); if(poscicion_1[int(c)-64]==0){ poscicion_1[int(c)-64]=i; }else{ poscicion_2[int(c)-64]=i; } c=faceup(fin); if(poscicion_1[int(c)-64]==0){ poscicion_1[int(c)-64]=fin; }else{ poscicion_2[int(c)-64]=fin; } ini++; fin--; } for(int i=1;i<=25;i++){ faceup(poscicion_1[i]); faceup(poscicion_2[i]); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...