Submission #669135

#TimeUsernameProblemLanguageResultExecution timeMemory
669135ToxtaqMemory (IOI10_memory)C++17
0 / 100
1 ms208 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; void play(){ int cnt = 0; map<char, pair<int, int>>mp; for(int i = 1;i <= 50;++i){ char c = faceup(i); if(mp[c].first <= 50 && mp[c].first >= 1)mp[c].second = i; else mp[c].first = i; } for(auto i = mp.begin();i != mp.end();++i){ char c1 = (i->second.first); char c2 = faceup(i->second.second); cnt++; if(cnt == 25)return; } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:13:14: warning: unused variable 'c1' [-Wunused-variable]
   13 |         char c1 = (i->second.first);
      |              ^~
memory.cpp:14:14: warning: unused variable 'c2' [-Wunused-variable]
   14 |         char c2 = faceup(i->second.second);
      |              ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...