#include #include #include using namespace std; void setLens(string S,vector> &lenVector) { int i; int maxLen=0; string maxString; int aNum=0,bNum=0; int len=1; for (i=0;i num; num.first=aNum; num.second=bNum; lenVector.push_back(num); } } int GetMaxLen(vector> lenVector,char ch){ int i; int MaxLen=0; for (i=0;i>S; int len=S.size(); int aNum=0,bNum=0; int i=0; for (i=0;i> lenVector; setLens(S,lenVector); int MaxLen=GetMaxLen(lenVector,' '); for (i=0;i