#include #include #include #include #include using namespace std; string word[50005],str; int n; int sh[27][27];//< -1 > 1 stack stk; char hsh[27]; int du[27]; bool hs[27]; string mp; bool op(string &a,string &b) { int max_len=min(a.size(),b.size()); for(int i=0;i>n; for(int i=0;i>word[i]; for(int j=0;j>str; for(int i=1;i=2) { cout<<0<=2) { // cout<-1) str[i]=hsh[str[i]-'a']+'a'; else { cout<<0< a e -> b d -> c a -> d b -> e 6 cebdbac cac ecd dca aba bac cedab abeceda ada bac cad ded eda */