# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1185621 | TroySer | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
typedef int ll;
vector<string> states;
void Init() {
return;
}
void TypeLetter(char L) {
string currentString = states[states.size() - 1];
currentString.push_back(L);
states.push_back(currentString);
}
void UndoCommands(int U) {
ll currSZ = states.size();
states.push_back(states[currSZ - U + 1]);
}
char GetLetter(int P) {
ll currSZ = states.size();
return states[currSZ][P];
}
int main() {
}