#include#include #include #include #include using namespace std;vector v;string s;bool cmp(string a,string b){ int al=0,bl=0; for(int i=0;i b[j])bl++; if(al >s; v.push_back(s); } if(p!=1)printf("\n"); stable_sort(v.begin(),v.end(),cmp); for(int i=0;i