How B😫我尝试过这个,个人认为比较接近答案的贪心了,但是为什么会wa啊 string f(const string& s) { int n=s.size(); if(n<=1)return ""; int pos=n-1; for(int i=0; i<n-1; i++)if(s[i]>s[i+1]) { pos=i; break; } return s.substr(0, pos)+s.substr(pos+1); } bool cmp(const string &x, const string &y) { return x...