问题1656--Suffix Structures

1656: Suffix Structures

时间限制: 1 Sec  内存限制: 128 MB
提交: 3  解决: 3
[状态] [讨论版] [提交] [命题人:]
题目描述

输入

输出

样例输入 Copy
automaton
tomat
样例输出 Copy
automaton
提示

In the third sample you can act like that: first transform "both" into "oth" by removing the first character using the suffix automaton and then make two swaps of the string using the suffix array and get "hot".

来源/分类