C++二分

149 ワード

STLの関数:
upper_bound(); lower_bound(); 二分関数ans=upper_bound(a, a+i, finds)-a; ans=lower_bound(a, a+i, finds)-a; PS:記憶-1