![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ STL函数
lee371042
陌上人如玉,君子世无双
展开
-
CodeForces 4C Registration system
C. Registration systemtime limit per test5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputA new e-mail service "Berlandesk" is going to be opened in...原创 2019-04-08 21:39:27 · 252 阅读 · 0 评论 -
C++STL中用到二分查找的函数
首先数组必须是有序的!1.binary_search()(查找某个值在数组中是否存在)使用方法:binary_search(list,list+n,a)list为数组,a为要查询的值,n为数组大小binary_search返回的是真假值,就是它只判断这个数组中是否存在这个数;代码:/**/#include<map>#include<set>...原创 2019-04-03 10:13:35 · 1753 阅读 · 0 评论 -
C++STL函数之count函数与count_if函数
count函数就是统计数组中有多少个数与要查询的数相同代码实例:/**/#include<map>#include<set>#include <vector>#include<stack>#include<queue>#include<cmath>#include<string>#i...原创 2019-04-03 10:33:41 · 2926 阅读 · 1 评论