A. Set of Strings Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/544/problem/A Description You are given a string q. A sequence of k strings s1, s2, ..., sk is called beautiful, if the concatenation of these strings is st…