10 人解决,12 人已尝试。
13 份提交通过,共有 37 份提交。
5.6 EMB 奖励。
单点时限: 2.0 sec
内存限制: 512 MB
Consider
All selected suffixes could assemble into a long string
Now, your mission is to find the one with minimum lexicographical order.
Here is a hint about lexicographical order. To compare strings of different lengths, the shorter string is usually padded at the end with enough “blanks” which is a special symbol that is treated as smaller than every letters.
The first line contains an positive interger
Output the string
2 abababbaabbababba abbabbabbbababbab
aab
3 aba aab bab
aaabab
3 bbb aaa ccc
baaac
10 人解决,12 人已尝试。
13 份提交通过,共有 37 份提交。
5.6 EMB 奖励。