# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
563299 | JANCARAPAN | Memory (IOI10_memory) | C++17 | 1 ms | 296 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 <bits/stdc++.h>
using namespace std;
void play(){
map<int,char> m;
int ans = 0;
for (int i=1; i<=50; i++){
char c = faceup(i);
m[i] = c;
}
for (char c = 'a'; c<='y'; c++){
int pos1=-1, pos2=-1;
for (auto e : m){
if (e.second == c && pos1 == -1) pos1 = e.first;
else pos2 = e.first;
}
faceup(pos1);
faceup(pos2);
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |