![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
hahahaer~
这世界上真的有人在过着你想要的生活,也必曾走过你所未经历的苦难。
展开
-
Distinctive Character --- Nordic Collegiate Programming Contest 2017(queue实现bfs)
题目链接#include<stdio.h>#include<iostream>#include<queue>#include<string.h>using namespace std;char a[25];int dist[(1<<20)];//dist表示层数,即与给出的原串的不相似度 queue<int...原创 2020-01-14 09:46:20 · 126 阅读 · 1 评论 -
火星人 STL next_permutation() 洛谷P1088
STL的next_permutation()给出序列在全排列中的下一个序列next_permutation()的头文件为#include<algorithm>代码:#include<bits/stdc++.h>using namespace std;int a[10005],n,m;int main(){ scanf("%d%d",&...原创 2020-01-11 10:55:39 · 122 阅读 · 0 评论 -
STL----deque
头文件:#include <deque>创建一个没有任何元素的deque对象:deque<int> d尾部压入元素n:d.push_back(n)头部压入元素n:d.push_front(n)弹出首元素:d.pop_front()弹出尾元素:d.pop_back()粘两个讲的比较详细的博文:stl之deque双端队...原创 2019-07-30 10:38:22 · 101 阅读 · 0 评论