这篇题解是否有误: 题解:https://www.luogu.com.cn/article/e0q6600p 题解代码中
len=upper_bound(f+1,f+len+1,a)-f;
有误,应为
len=upper_bound(f+1,f+ans+1,a)-f;