lower_bound

1,给定长度为n的单调不下降数列,a0,a1,a(n-1)和一个数k,求满足ai>=k条件的最小的i,不存在的情况下输出n。

2,二分啊。。你来写下。

posted @ 2020-02-15 16:08  北月真好  阅读(156)  评论(0)    收藏  举报