제출 #625336

#제출 시각아이디문제언어결과실행 시간메모리
625336lorenzoferrari크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++17
100 / 100
472 ms227828 KiB
#include <bits/stdc++.h>
#include <bits/extc++.h>
using namespace std;
using namespace __gnu_cxx;

const int MAXN = 1e6+5;

int head = 0;
rope<char> s[MAXN];

void Init() {}

void TypeLetter(char L) {
    s[head+1] = s[head];
    s[++head].push_back(L);
}

void UndoCommands(int U) {
    s[head+1] = s[head - U];
    ++head;
}

char GetLetter(int P) {
    return s[head][P];
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...