# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1112177 | enzy | 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 <bits/stdc++.h>
using namespace std;
void play() {
int v1[30], v2[30];
for(int i=0;i<30;i++) v[i]=-1;
for(int i=1;i<=100;i+=2){
char a=faceup(i), b=faceup(i+1);
int ia=a%65, ib=b%65;
if(v1[ia]==-1) v1[ia]=i;
else v2[ia]=i;
if(v1[ib]==-1) v1[ib]=i;
else v2[ib]=i;
}
for(int i=0;i<25;i++){
char l1=faceup(v1[i]), l2=faceup(v2[i]);
}
}