随笔分类 -  STL-map

摘要:映射map又称字典,表,或者查找表,其元素是由key和value两个分量组成的对偶(key,value)。 key是键,value是与键key相关联的映射值,这样的元素又称“关联”。key和value可以有不同的类型。多重映射muitimap和map的区别是:multimap允许元素有相同的键key 阅读全文
posted @ 2018-09-29 15:19 执||念 阅读(198) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/589/A Polycarp has quite recently learned about email aliases. Of course, he used to suspect that the ca 阅读全文
posted @ 2018-08-02 15:52 执||念 阅读(223) 评论(0) 推荐(0)
摘要:题目链接:https://vjudge.net/contest/237395#problem/A 学习博客:https://blog.csdn.net/lyy289065406/article/details/6647413 You have just moved from Waterloo to 阅读全文
posted @ 2018-08-01 14:16 执||念 阅读(309) 评论(0) 推荐(0)
摘要:题目链接:https://vjudge.net/contest/237394#problem/C Watchmen are in a danger and Doctor Manhattan together with his friend Daniel Dreiberg should warn th 阅读全文
posted @ 2018-07-20 16:03 执||念 阅读(236) 评论(0) 推荐(0)
摘要:关于map的学习:https://www.cnblogs.com/fnlingnzb-learner/p/5833051.html Map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据 处理能力,由于这个特性,它完 阅读全文
posted @ 2018-07-20 15:51 执||念 阅读(266) 评论(0) 推荐(0)