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

#TimeUsernameProblemLanguageResultExecution timeMemory
501443aryan12Memory (IOI10_memory)C++17
100 / 100
2 ms388 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { map<char, int> mp; for(int i = 1; i <= 50; i++) { char a = faceup(i); if(mp.count(a)) { char b = faceup(mp[a]); } else { mp[a] = i; if(i == 1) char b = faceup(2); else char b = faceup(1); } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:11:15: warning: unused variable 'b' [-Wunused-variable]
   11 |          char b = faceup(mp[a]);
      |               ^
memory.cpp:15:26: warning: unused variable 'b' [-Wunused-variable]
   15 |          if(i == 1) char b = faceup(2);
      |                          ^
memory.cpp:16:20: warning: unused variable 'b' [-Wunused-variable]
   16 |          else char b = faceup(1);
      |                    ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...