211210400509
211210400509
全部文章
STL
c++(1)
c语言(1)
天梯赛(4)
字符串函数汇总(1)
牛客刷题总结(14)
蓝桥杯(2)
归档
标签
去牛客网
登录
/
注册
Welcome
My sweetheart
全部文章
/ STL
(共8篇)
bitset
#include <iostream> #include <bitset> //是一个很长很长的0 1串 using namespace std; int main() { bitset<1000> a; //尖括号里定义1的串的大小 a[0] ...
2023-03-22
0
285
deque
#include <iostream> #include <deque> //双端队列 using namespace std; int main() { deque<int> a; a.begin(); a.end(); a....
2023-03-22
0
353
vector
#include <iostream> #include <vector> // vector也自带比较运算 using namespace std; struct student { int n; }; int main() { vector<in...
vector
stl
2023-03-22
0
349
unordered_set
#include <iostream> #include <unordered_set> #include <unordered_map> // unordered 是无序的 set默认是有序的 using namespace std; int main() ...
2023-03-22
0
278
stack
#include <iostream> #include <stack> using namespace std; int main() { stack<int> stk; stk.push(1); stk.pop(); ...
2023-03-22
0
303
set
#include <iostream> #include <set> // set为有序集合 multiset为有序多重集合 using namespace std; int main() { set<int> a; //元素不能重复 否则会无...
STL
2023-03-22
0
275
queue
#include <iostream> //头文件queue包含循环队列queue 和 优先队列 priority queue优先队列两个容器 #include <queue> //先进先出 using namespace std; int main() { //...
queue
stl
2023-03-22
0
335
pair
#include <iostream> using namespace std; int main() { pair<int, string> a; a = {3, "yxc"}; cout << a.first << en...
STL
2023-03-22
0
310