![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
Flying_Fatty
这个作者很懒,什么都没留下…
展开
-
STL之C++中map
样例题:https://codeforces.com/contest/1234/problem/B2主要是需要对每个数字 Ai 保存的位置进行记录,Ai 最大是1e9,会导致数组保存不了,于是想到mapmap的功能:建立key - value的对应,key和value可以是任意类型定义与初始化:#include<map>map<int, int> mp;...原创 2019-10-28 22:04:35 · 194 阅读 · 0 评论 -
STL之python中list
样例题:https://codeforces.com/contest/1234/problem/B1主要是需要对每个数字 Ai 保存的位置进行记录,Ai 最大是1e9,会导致数组保存不了,于是想到python中的listlist声明:mylist = []print (type(mylist))list增加:list = [1,2,3,4]list.append(5)...原创 2019-10-29 17:38:30 · 353 阅读 · 0 评论