记录一下各种之前不知道的point。

std::set::lower_bound与std::lower_bound的效率问题

参考博客:https://blog.csdn.net/CZWin32768/article/details/51752267

set用lower_bound要这样用啊:s.lower_bound(x)。

vector可定长
vector<int>v(n);

这样写。

%.1f输出是四舍五入的

要截尾要这样写(int)(x*10000)/10000。


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!

注意 Previous
各处看来的姿势 Next