#include #include #include #include using namespace std; int LevDistance(string a,string b,int m,int n){ int d[m+1][n+1],minimum; int x; int y; int z; for(int i=0;i<=m;i++){ d[i][0]=i; } for(int i=0;i<=n;i++){ d[0][i]=i; } for(int i=1; i<=m;i++){ for(int j=1;j<=n;j++){ if(a[i-1]==b[j-1]){ d[i][j]=d[i-1][j-1]; } else{ x = d[i-1][j]+1; y = d[i][j-1]+1; z = d[i-1][j-1]+1; if(x < y && x < z){ minimum = x; } else if(y > links, int wordcount,string word){ int newwordcount; int words=wordcount; for(int j=0;j words){ words=newwordcount; } } return words; } int main(){ map > links; vector words; string word, word2; int wordcount,wordcounts=0; while(cin >> word){ words.push_back(word); if(cin.eof()){ break; } } int minimum; // cout << words[5]; for(int k=0;k wordcounts){ wordcounts = wordcount; } } cout << wordcounts<< endl; return 0; }