![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL学习
老年退役选手
BAT打工人
展开
-
UVA10282 map容器使用
好像没什么好说的。。map容器会怎么用就水过了。。 代码如下: #include #include #include #include using namespace std; mapmp; const int maxn = 30; char s[maxn]; void init(){ int len = strlen(s); string s1 = "";原创 2017-10-21 17:48:04 · 203 阅读 · 0 评论 -
LA3135 优先队列简单应用
题意很好理解,使用的数据结构就是优先队列了。不断模拟并维护小根堆即可。不过C++有STL,本着能不重复造轮子就不造轮子的原则,我果断的选择了STL。 代码如下: #include #include #include using namespace std; struct node{ int qnum,period,Time; bool operator <(const原创 2017-10-13 15:05:06 · 333 阅读 · 0 评论