제출 #848369

#제출 시각아이디문제언어결과실행 시간메모리
848369toma_ariciuMemory (IOI10_memory)C++17
0 / 100
1 ms436 KiB
#include "grader.h"
#include "memory.h"
#include <iostream>

using namespace std;

pair <int, int> positions[25];

void play() {
    for (int i = 0; i < 25; i++) {
        positions[i] = {0, 0};
    }
    for (int i = 1; i <= 50; i++) {
        char a = faceup(i);
        int cod = a - 'a';
        if (positions[cod].first) {
            positions[cod].second = i;
        }
        else {
            positions[cod].first = i;
        }
    }
    for (int i = 0; i < 25; i++) {
        faceup(positions[i].first);
        faceup(positions[i].second);
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...