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 <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;;
void play(){
map<char,int> mymp;
vector<pair<int,int>> ans;
for(int i = 1; i <= 50; i++){
char c = faceup(i);
if(mymp[c])ans.push_back(make_pair(mymp[c],i));
else mymp[c] = i;
}
for(auto i:ans){
faceup(i.first);
faceup(i.second);
}
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |