# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
108217 | 2019-04-28T08:29:02 Z | SecretAgent007 | Crayfish scrivener (IOI12_scrivener) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; vector< string > last; string curr = ""; void Init(){ } void TypeLetter(char c){ last.push_back(curr); curr += c; } void UndoCommands(int n){ last.push_back(curr); curr = last[last.size()-n-1]; } char getLetter(int n){ return curr[n]; }