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 <iostream>
void play() {
int IDX1[30] = {};
int IDX2[30] = {};
for(int i=1;i<=50;i++){
char ch = faceup(i);
int x = ch - 'A';
if( !IDX1[x] ) IDX1[x] = i;
else IDX2[x] = i;
}
for(int i=0;i<25;i++){
// std::cout << char( i+'A' ) << " : " << IDX1[i] << " " << IDX2[i] << '\n';
faceup( IDX1[i] );
faceup( IDX2[i] );
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |