摘要: STL二分查找函数 int N = 10, a[] = {1, 1, 2, 4, 5, 5, 7, 7, 9, 9}, x = 5;int i = lower_bound(a, a + N, x) - a, j = upper_bound(a, a + N, x) - a; a[0] ~ a[i - 阅读全文
posted @ 2023-08-29 08:06 yeahhhhhh 阅读(15) 评论(0) 推荐(0)