| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 341793 | marvenlee | Memory (IOI10_memory) | C++14 | 0 ms | 0 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "grader.h"
#include "memory.h"
#include <map>
using namespace std;
void play() {
   int i;
   char a, b;
   map<char,int> mp;
   for (i=1; i<=50; i++){
        a = faceup(i);
        if(mp.find(a)!=mp.end()){
            b = faceup(mp.find(a));
        }
        else {
            mp[a]=i;
            i+=1;
            b= faceup(i);
            mp[b]=i;
        }
   }
}
