Submission #730731

#TimeUsernameProblemLanguageResultExecution timeMemory
730731Jarif_RahmanMemory (IOI10_memory)C++17
100 / 100
2 ms336 KiB
#include "memory.h"
#include "grader.h"
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define sc second
using namespace std;
typedef long long int ll;
typedef string str;


void play(){
    vector<bool> bl(25, 0);
    vector<int> pos(25, -1);
    bool up = 0;
    for(int i = 1; i <= 50; i++){
        int c = faceup(i)-'A';
        up = !up;
        if(pos[c] == -1) pos[c] = i;
        else{
            if(!up) faceup(i);
            faceup(pos[c]);
            up = 0;
        }
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...