# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
717635 | lukatasev | Memory (IOI10_memory) | C++14 | 0 ms | 0 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 <algorithm>
void play() {
char niza[25] = {'0'}, niza2[25];
char current;
for(int i=1; i<=50; i++) {
current = faceup(i);
if(niza[current] == '0') {
niza[current] = i;
} else {
niza2[current] = i;
}
}
sort(niza, niza+25);
sort(niza2, niza2+25);
for(auto x: niza) {
for(auto y: niza2) {
faceup(x);
faceup(y);
}
}
// int i;
// char a, b;
// for (i=0; i<10; ++i) {
// a = faceup(42);
// b = faceup(47);
// }
}