![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
stl
文章平均质量分 54
Meosea
这个作者很懒,什么都没留下…
展开
-
1031 UVA540 map+queue
UVA 540 又是题目读的乱七八糟的题,团体队列的话 啊最重要的还是理解题意 插入时有两种 1.有队友那么插入队友之后, 2.没有队友的话插入队尾 所以问题的关键就是判断有没有队友 队作为一个群体,具有相同的ID编号,即多对一的关系——–多对一的关的话很容易想到Map的吧 (毕竟映射诶) 好的呢判断条件解决啦~ 所以我们去执行呀原创 2017-10-30 21:10:18 · 171 阅读 · 0 评论 -
UVA-136 Set
丑数 本来明白思路就应该做出来的题结果wa了好多次啊嘤嘤嘤 求第1500个元素是什么那么也就是我们生成一下第1500个元素就行了但是WA 了嘤嘤嘤!!!!!!!!::::: WA 的代码:::: ugly.insert(1);//!!!!!!!这个的位置#include <iostream> #include <cstdio> #include <set> using namespace s原创 2017-10-31 14:38:03 · 269 阅读 · 0 评论 -
580 DFS
题目Kefa decided to celebrate his first big salary by going to the restaurant.He lives by an unusual park. The park is a rooted tree consisting of n vertices with the root at vertex 1. Vertex 1 also cont原创 2017-11-16 14:10:21 · 251 阅读 · 0 评论