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

#TimeUsernameProblemLanguageResultExecution timeMemory
477110glomeMemory (IOI10_memory)C++17
100 / 100
6 ms328 KiB
#include "grader.h" #include "memory.h" #include<bits/stdc++.h> using namespace std; void play() { map<char, vector<int>> maps; map<char, bool> m; for (int i = 1; i<=50; i+=2) { char a = faceup(i), b = faceup(i + 1); if(a == b) { m[a] = 1; continue; } maps[a].push_back(i); maps[b].push_back(i + 1); } for (int i = 'A'; i<='Y'; i++) { if(m[i]) { continue; } char a = faceup(maps[i][0]); char b = faceup(maps[i][1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:21:10: warning: unused variable 'a' [-Wunused-variable]
   21 |     char a = faceup(maps[i][0]);
      |          ^
memory.cpp:22:10: warning: unused variable 'b' [-Wunused-variable]
   22 |     char b = faceup(maps[i][1]);
      |          ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...