#include#include #include using namespace std; #define N 400010/* run this program using the console pauser or add your own getch, system("pause") or input loop */int ch[N][30];int val[N];int cnt;char str[N];int d[N];int idx(int c){ return c-'a';}void insert(char *s){ int i,n=strlen(s); int c,u=0; for(i=0;i =0;i--) search(str+i,i,n-i); printf("Case %d: %d\n",num++,d[0]); } return 0;}