Submission #563299

#TimeUsernameProblemLanguageResultExecution timeMemory
563299JANCARAPANMemory (IOI10_memory)C++17
0 / 100
1 ms296 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play(){ map<int,char> m; int ans = 0; for (int i=1; i<=50; i++){ char c = faceup(i); m[i] = c; } for (char c = 'a'; c<='y'; c++){ int pos1=-1, pos2=-1; for (auto e : m){ if (e.second == c && pos1 == -1) pos1 = e.first; else pos2 = e.first; } faceup(pos1); faceup(pos2); } }

Compilation message (stderr)

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