Submission #1109054

#TimeUsernameProblemLanguageResultExecution timeMemory
1109054m_bezrutchkaMemory (IOI10_memory)C++14
100 / 100
3 ms564 KiB
#include "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;

void play() {
   vector<int> pos(25, 0);
   for (int i = 1; i <= 50; i++) {
      int val = faceup(i) - 'A';
      if (pos[val] > 0) {
         faceup(pos[val]);
      } else {
         pos[val] = i;
         faceup(i + 1);
      }
   }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...