# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1191569 | LolkasMeep | 크레이피쉬 글쓰는 기계 (IOI12_scrivener) | C++20 | 0 ms | 0 KiB |
#include "bits/stdc++.h"
using namespace std;
string h[1000005];
int i=1;
void Init(){h[0]="";}
void TypeLetter(char L){
h[i]=h[i-1]+L;
i++;
}
void UndoCommands(int U){
h[i] = h[i-U];
i++;
}
char GetLetter(int P){
return h[i][p];
}