# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
545506 | AJ00 | Memory (IOI10_memory) | C++14 | 2 ms | 228 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 <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
vector<pair<int,int>> ans;
pair<int,int> temp[25];
void play(){
for (int i = 0; i < 25; i++){
temp[i] = {-1,-1};
}
int candies = 0;
for (int i = 1; i <= 50; i++){
int a;
char ch = faceup(i);
a = (ch-'A');
if (temp[a].first != -1){
temp[a].second = i;
ans.push_back(temp[a]);
}
else {
temp[a].first = i;
}
}
for (int i = 0; i < 25; i++){
faceup(ans[i].first);
faceup(ans[i].second);
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |