题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1029
题目大意是说给出a数组,对于b中的每一个在a中找出最小范围使得ai<=b<a(i+1),注意Print a blank line after each test case.这一句话!开始没看到结果WA了,杯具
自敲的二分
stl---lower_bound()
本文解析了ZJU ACM 1029题目的算法实现,通过自定义二分查找和使用STL的lower_bound函数两种方式来解决在有序数组中寻找特定元素范围的问题,并强调了输出格式的重要性。
题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1029
题目大意是说给出a数组,对于b中的每一个在a中找出最小范围使得ai<=b<a(i+1),注意Print a blank line after each test case.这一句话!开始没看到结果WA了,杯具
自敲的二分
stl---lower_bound()

被折叠的 条评论
为什么被折叠?