#Lutece1972. 统计串的个数
统计串的个数
Migrated from Lutece 1972 统计串的个数
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给出字符串可重集
任意选出两个中的字符串,,再任意选出的前缀,的前缀,连接成为
请问有多少个不同的
Input
第一行一个,代表集合大小 接下来个串,代表的第个串 数据保证每个串均由小写字母组成,并且每个串长度小于等于
Output
一个数表示不同的的个数
Samples
Resources
2018 UESTC ACM Training for Search Algorithm and String