定义三个指针i,left,right. i用来遍历数据,从下下标为0一直到sz-3。 numbers.begin(),numbers.end()); //先排序 vector<int> tmp; for(int i=0;i<=sz