# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
374631 | Karliver | Memory (IOI10_memory) | C++14 | 3 ms | 492 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>
const int N = 51;
using namespace std;
void play() {
int tot = 0;
vector<vector<int>> ind(30);
map<char, int> mp;
for(int i = 0;i < 25;++i) {
char f = faceup(i + 1);
char s = faceup(50 - i);
if(f == s) {
++tot;
mp[f] = 1;
}
ind[f - 'A'].push_back(i + 1);
ind[s - 'A'].push_back(50 - i);
}
if(tot == 25) {
return;
}
for(char c = 'A';c <= 'Y';++c) {
if(mp[c])continue;
for(auto p : ind[c - 'A']) {
char ls = faceup(p);
}
++tot;
if(tot == 25) {
return;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |