STL
文章平均质量分 81
anthony1314
退役acmer 想要找到后端实习的菜鸡
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
算法竞赛中 C++常用方便的函数
目录 _builtin_popcount() _builtin_popcountll() next_permutation(p,p+n) lower_bound() ,up_bound() assert(bool a); 二进制运算符: 64位最大数的边界 字符串函数: priority_queue unique _builtin_popcount() 计算32位二进制中多...原创 2018-08-19 15:06:56 · 1756 阅读 · 0 评论 -
C++ bitset用法
简介 #include< bitset > bitset是用来存放bit位元素的,由于每个元素(0或1)只占1bit位,因而可以节约空间(相比于8bit位的bool型变量)。在c++ stl中,提供了操作位的容器。 操作 1.创建 bitset<100> b//它能容纳100位比特位,每位上的初始值为0 bitset的大小在定义时确定,定义后不能修改 2.赋值 下标法,...原创 2019-10-13 13:22:57 · 968 阅读 · 0 评论
分享