现在的位置: 首页 > 综合 > 正文

zoj 2029【二分查找】或【STL】

2013年08月15日 ⁄ 综合 ⁄ 共 1079字 ⁄ 字号 评论关闭

题目: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()

抱歉!评论已关闭.