이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "grader.h"
#include "memory.h"
#include <map>
using namespace std;
void play() {
   int i;
   char a, b;
   map<char,int> mp;
   int j=1;
   for (i=1; i<=50 && j<=50; i++){
        a = faceup(j);
        if(mp.find(a)!=mp.end()){
            printf("%d %d\n",j,mp.find(a)->second);
            b = faceup(mp.find(a)->second);
        }
        else {
            mp[a]=j;
            j+=1;
            b= faceup(j);
            if( mp.find(b)==mp.end()) mp[b]=j;
            else j--;
        }
        j+=1;
   }
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... |