
基本算法
#
MySGDLife
总分总
展开
-
Codeforces Round #624 (Div. 3)
C. Perform the Combo time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You want to perform the combo on your opponent in one popular fighting ga...原创 2020-03-31 20:43:30 · 208 阅读 · 0 评论 -
二分总结
二分是一种查询速度为log2n的算法,其使用条件是该数列必须具有单调性 我们把小于x的的第一个位置称为下界lower ,把大于x的第一个称为上界upper 先对STL中的二分函数做个总结 stl二分中查找某个元素使用binary_search(a,a+sizie,所需查询的值)存在返回真 不存在返回假 lower_bound(val): 返回容器中第一个值【大于或等于】val的元素的iterato...原创 2019-10-31 20:37:33 · 193 阅读 · 0 评论