1406 에디터 https://www.acmicpc.net/problem/1406 1406번: 에디터 첫째 줄에는 초기에 편집기에 입력되어 있는 문자열이 주어진다. 이 문자열은 길이가 N이고, 영어 소문자로만 이루어져 있으며, 길이는 100,000을 넘지 않는다. 둘째 줄에는 입력할 명령어의 개수 www.acmicpc.net #include using namespace std; int n,idx; string m; string word; int main() { ios::sync_with_stdio(NULL); cin.tie(NULL); cout.tie(NULL); cin >> m >> n; idx = m.length(); for (int i = 0; i > word; if ..