10 2020 档案

摘要:lower_bound() lower_bound(a+1,a+1+n,x):从数组的a+1位置到a+n位置二分查找第一个大于或等于x的数字,找到返回该数字的地址,不存在则返回a+1+n。通过返回的地址减去起始地址a,得到找到数字在数组中的下标。 #include<bits/stdc++.h> us 阅读全文
posted @ 2020-10-22 20:23 Sure05 阅读(208) 评论(0) 推荐(0)