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 <iostream>
#include "grader.h"
#include "memory.h"
using namespace std;
/*char faceup( int c ) {
char ans;
cout << c << "\n";
cin >> ans;
return ans;
}*/
void play() {
const int n = 25;
int lit, i;
int poz[n][2];
for ( i = 0; i < n; i++ )
poz[i][0] = poz[i][1] = 0;
for ( i = 1; i <= 2 * n; i++ ) {
lit = faceup( i ) - 'A';
if ( poz[lit][0] == 0 )
poz[lit][0] = i;
else
poz[lit][1] = i;
}
for ( i = 0; i < n; i++ ) {
faceup( poz[i][0] );
faceup( poz[i][1] );
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |