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

#TimeUsernameProblemLanguageResultExecution timeMemory
518492nurlitadfMemory (IOI10_memory)C++17
100 / 100
2 ms340 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { int i; vector<int> card(25, 0); for (int i = 1; i < 50; i += 2) { char a = faceup(i); char b = faceup(i + 1); if(a != b) { if(card[a - 'A']) { faceup(i); faceup(card[a - 'A']); } else { card[a - 'A'] = i; } if(card[b - 'A']) { faceup(i + 1); faceup(card[b - 'A']); } else { card[b - 'A'] = i + 1; } } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:8: warning: unused variable 'i' [-Wunused-variable]
    9 |    int i;
      |        ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...