Submission #1190682

#TimeUsernameProblemLanguageResultExecution timeMemory
1190682burgerguyCrayfish scrivener (IOI12_scrivener)C++20
100 / 100
431 ms223560 KiB
#include <bits/stdc++.h>
#include <ext/rope>

using namespace std;
using namespace __gnu_cxx;

using ll = long long;

crope commands[1000010];
ll curCommand = 0;

void Init() {

}

void TypeLetter(char L) {
    ++curCommand;
    commands[curCommand] = commands[curCommand - 1] + L;
}

void UndoCommands(int U) {
    ++curCommand;
    commands[curCommand] = commands[max(0LL, curCommand - U - 1)];
}

char GetLetter(int P) {
    return commands[curCommand][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...