# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
976600 | 2024-05-06T19:34:28 Z | Isam | Crayfish scrivener (IOI12_scrivener) | C++17 | 0 ms | 0 KB |
#include<bits/stdc++.h> using namespace std; string s[1000001]; int tot; void init(); void TypeLetter(char L){ s[++tot] = s[tot-1] + 'L'; } void UndoCommands(int U){ s[tot] = s[tot - U]; } char GetLetter(int P){ return s[tot][P-1]; }