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

#TimeUsernameProblemLanguageResultExecution timeMemory
372568Christopher_RdzMemory (IOI10_memory)C++14
100 / 100
3 ms380 KiB
#include "grader.h" #include "memory.h" char cubeta[52]; int aux[52]; void play() { char a, b; int pos = 1; for (int i = 1; i <= 50; i++){ a = faceup(i); cubeta[i] = a; } for (int i = 1; i <= 50; i++){ for (int j = 1; j <= 50; j++){ if (i != j){ if (aux[i] == 0 and aux[j] == 0){ if (cubeta[i] == cubeta[j]){ faceup(i); faceup(j); aux[i] = 1; aux[j] = 1; } } } } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:8:12: warning: unused variable 'b' [-Wunused-variable]
    8 |    char a, b;
      |            ^
memory.cpp:9:7: warning: unused variable 'pos' [-Wunused-variable]
    9 |   int pos = 1;
      |       ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...