摘要:
题目通道:POJ 2418 第一次用map,中间费了点周折,string类的输入输出一直存在问题,string类不能scanf直接输入,要提前预订大小,string a; a.resize(100); scanf("%s",&a[0]); 如果多个字符串输入,用getline(cin, s)即可,空 阅读全文
posted @ 2020-08-08 19:33
不敢说的梦
阅读(147)
评论(0)
推荐(0)
摘要:
map基本操作和使用: map是STL的一个关联容器,提供一对一的数据处理能力,底层是一棵红黑树,并且有自动排序功能。map可以修改值,但不能修改key。key和vaule可以是任意你需要的类型,map查找元素的复杂度大概是O(log n) map构造: 例如:map<int, string> ma 阅读全文
posted @ 2020-08-08 18:17
不敢说的梦
阅读(206)
评论(0)
推荐(0)
摘要:
题目跳转:POJ 3349 Describe: You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. 阅读全文
posted @ 2020-08-08 16:46
不敢说的梦
阅读(144)
评论(0)
推荐(0)

浙公网安备 33010602011771号