文件名称:13
介绍说明--下载内容均来自于网络,请自行研究使用
如果字符串具有相同的后缀,那么就把这么字符串的相同后缀和在一起,这样就能节约一点空间了。比如说有两个字符串分别为“Programming”和“Something”,这样它们有相同的后缀ing,这时候就能省去三个字母了。请写一个程序,计算John这样做能够省去多少个字母?-If the string have the same suffix, then put such a string with the same suffix, and so can save a little space. For example, two strings were " Programming" and " Something" , so they have the same suffix ing, this time the three letters can be omitted. Please write a program to calculate how much John to do so to save letters?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
13.cpp