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

#TimeUsernameProblemLanguageResultExecution timeMemory
1110892julia_08Memory (IOI10_memory)C++17
100 / 100
3 ms508 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; const int MAXN = 60; map<char, pair<int, int>> m; void play(){ for(int i=1; i<=50; i++){ char c = faceup(i); if(m.count(c)){ m[c].second = i; } else m[c].first = i; } for(char c='A'; c<='Y'; c++){ char ans; ans = faceup(m[c].first); ans = faceup(m[c].second); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:23:10: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
   23 |     char ans;
      |          ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...