![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
辣是真滴牛啤
这个作者很懒,什么都没留下…
展开
-
Codeforce - 1106:Lunar New Year and a Wander(BFS-优先队列 + 图 + STL)
Lunar New Year is approaching, and Bob decides to take a wander in a nearby park. The park can be represented as a connected graph with n nodes and m bidirectional edges. Initially Bob is at the node ...原创 2019-02-21 14:21:23 · 198 阅读 · 0 评论 -
UVa - 11572:Unique Snowflakes(set、vector)(窗口移动问题)
Emily the entrepreneur has a cool business idea: packaging and selling snowflakes. She has devised a machine that captures snowflakes as they fall, and serializes them into a stream of snowflakes that...原创 2019-01-31 14:17:04 · 85 阅读 · 0 评论 -
HDU - 4858:项目管理(vector)
项目管理 我们建造了一个大项目!这个项目有n个节点,用很多边连接起来,并且这个项目是连通的! 两个节点间可能有多条边,不过一条边的两端必然是不同的节点。 每个节点都有一个能量值。 现在我们要编写一个项目管理软件,这个软件呢有两个操作: 1.给某个项目的能量值加上一个特定值。 2.询问跟一个项目相邻的项目的能量值之和。(如果有多条边就算多次,比如a和b有2条边,那么询问a的时候b的权值算2次)。 I...原创 2019-01-30 15:07:44 · 208 阅读 · 0 评论 -
HDU - 1251:统计难题(map容器)
统计难题 Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提问,每行一个提问,每个提问都是一个字符串. ...原创 2019-01-30 14:50:55 · 102 阅读 · 0 评论 -
POJ - 3320 :Jessica's Reading Problem(尺取 - STL(set,map))
原题链接 Jessica’s a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she wants to pass it, she has to master all ideas...原创 2019-02-12 12:02:21 · 156 阅读 · 0 评论 -
CodeForces - 835B:改数字(STL)
原题链接 泰泰学长特别喜欢十分巨大的数字 。有一天,他随手写了一个很大的数字n,但是热爱做题的泰泰学长很快把它想成了一个题目,他希望这个数字在不改变数字位数的情况下,尽可能少的改变几位,让它每一位的数字加和不小于k。这对泰泰学长实在太简单了,他把问题留给了你! Input 第一行包含一个整数 k (1 ≤ k ≤ 109). 第二行包含一个整数 n (1 ≤ n < 10100000). 数...原创 2019-02-26 22:48:00 · 251 阅读 · 0 评论