# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1199110 | AMel0n | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FOR(i,N) for(ll i = 0; i < N; i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
vector<string> pr;
void Init(){
;
}
void TypeLetter(char L) {
if (pr.size()) pr.push_back(pr[pr.size()-1]+L);
else pr.push_back(format("{}", L));
}
void UndoCommands(int U) {
pr.push_back(pr[pr.size()-1-U]);
}
char GetLetter(int P) {
return pr[pr.size()-1][P];
}
// signed main() {
// cin.tie(0); ios::sync_with_stdio(false);
// }