제출 #500013

#제출 시각아이디문제언어결과실행 시간메모리
500013LucaIlieMemory (IOI10_memory)C++17
0 / 100
1 ms200 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...