[kmp,不要过多调用strlen!!!] Codeforces 1200E Compress Words
题目: http://codeforces.com/contest/1200/problem/E Compress Words time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output n sample" and " please" into " samplease". Amugae will merge his sentence left to right (i.e. first merge the first two words, then merge the result with the third word and so on). Write a program that prints the compressed word after the merging process ends. Input n 1 ≤ n ≤ 10 5 1≤n≤105), the number of the words in Amugae's sentence. n A', ' B', ..., ' Z', ' a', ' b', ..., ' z', ' 0', ' 1', ..., ' 10 6 106. Output In the