![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
文章平均质量分 59
xiaoxiede_wo
这个作者很懒,什么都没留下…
展开
-
期末考试(优先队列)
优先队列是队列的一种,不过它可以按照自定义的一种方式(数据的优先级)来对队列中的数据进行动态的排序每次的push和pop操作,队列都会动态的调整,以达到我们预期的方式来存储。例如:我们常用的操作就是对数据排序,优先队列默认的是数据大的优先级高所以我们无论按照什么顺序push一堆数,最终在队列里总是top出最大的元素。 priority_queueint, vectorint>, g转载 2017-06-08 18:17:44 · 247 阅读 · 0 评论 -
用vector存二维数组
int main(){ vector > a; // a是向量类型的向量 vector v1; // v1是int类型的向量 int i,j,m; for(i=0;i { a.push_back(v1); } for(i=0;i { for(j=0;j {原创 2017-08-19 15:47:07 · 4552 阅读 · 0 评论 -
C. K-Dominant Character
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string s consisting of lowercase Latin letters. Character原创 2017-11-13 12:55:24 · 400 阅读 · 0 评论 -
CodeForces - 862B (二分图染色)
Mahmoud and Ehab continue their adventures! As everybody in the evil land knows, Dr. Evil likes bipartite graphs, especially trees.A tree is a connected acyclic graph. A bipartite graph is a graph,原创 2017-12-03 20:40:51 · 311 阅读 · 0 评论 -
HDU - 1251 统计难题
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提问,每行一个提问,每个提问都是一个字符串转载 2017-12-03 21:03:53 · 693 阅读 · 1 评论 -
Planning
Helen works in Metropolis airport. She is responsible for creating a departure schedule. There aren flights that must depart today, thei-th of them is planned to depart at the i-th minute of the d原创 2017-11-07 18:18:24 · 244 阅读 · 0 评论 -
找球号(一)(set)
时间限制:3000 ms | 内存限制:65535 KB难度:3描述在某一国度里流行着一种游戏。游戏规则为:在一堆球中,每个球上都有一个整数编号i(0<=i<=100000000),编号可重复,现在说一个随机整数k(0<=k<=100000100),判断编号为k的球是否在这堆球中(存在为"YES",否则为"NO"),先答出者为胜。现在有一个人想玩玩这个游戏,...原创 2018-01-17 10:16:25 · 272 阅读 · 0 评论 -
(多校)Distinct Values
Distinct ValuesTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3336 Accepted Submission(s): 523 Problem DescriptionChiaki has an arra...原创 2018-07-24 15:54:52 · 283 阅读 · 0 评论 -
Features Track(map)
Morgana is learning computer vision, and he likes cats, too. One day he wants to find the cat movement from a cat video. To do this, he extracts cat features in each frame. A cat feature is a two-dime...原创 2018-09-12 20:00:06 · 142 阅读 · 0 评论