![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
lvzil
湖南科技大学 17 软件
展开
-
简单map
题意:输出总分数最高的人,若有多个总分数相同的人,输出最先达到最高分数的人。这题一开始我是用string一边 暴力模拟更新一边标记。后来发现这里有个坑,一开始得分高的人可能后来拿了个负分,名次下降。按照我开始的方法检测不出来这种情况。用map做思路更清晰也更简洁。代码:#include <cstdio>#include <iostream>#inc...原创 2018-08-20 10:27:54 · 82 阅读 · 0 评论 -
(STL中的set)需反复掌握
Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。Input有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇到#时表示输入结束。Output每组只输出一个整数,其单独成行,该整数代表一篇...原创 2019-01-14 10:29:31 · 182 阅读 · 0 评论 -
FIGUREFUL(简单双重map )
FIGUREFULDon and his friends had some sort of code word to describe the girls who pass towards their class.Anitha passed - killer told.. “Dude, 5 2 is going”Chitra passed - Jumbo told.. “Dude...原创 2019-03-21 11:20:08 · 307 阅读 · 0 评论 -
stl 入门题目
一。Let the Balloon Rise 「map」Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the ...原创 2019-03-21 11:27:04 · 487 阅读 · 0 评论 -
uva 156 反片语
DescriptionMost crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however do not h...原创 2019-03-21 18:12:02 · 153 阅读 · 0 评论