Submission #1190664

#TimeUsernameProblemLanguageResultExecution timeMemory
1190664burgerguyCrayfish scrivener (IOI12_scrivener)C++20
34 / 100
146 ms327680 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; vector<string> commands(1e5); ll curCommand = 0; string curString; void Init() { } void TypeLetter(char L) { curCommand++; curString.append(1, L); commands[curCommand] = curString; } void UndoCommands(int U) { curString = commands[max(0LL, curCommand - U)]; ++curCommand; commands[curCommand] = curString; } char GetLetter(int P) { return curString[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...