摘要: 题目链接地址:http://acm.hdu.edu.cn/showproblem.php?pid=1800思路:仔细分析容易发现,其实就是求给定的字符串中出现最多的字符串个数,当用字符串实现时,注意前导0需去掉。方法一:map 这里为什么用map<int,int>可以,我想可能是因为虽然有的数超出范围但是读入的时候还是会读出一个数的(虽然这个数不是原来的那个数),而每个数都唯一,让然用map<string,int>似乎更合乎情理#include<stdio.h> #include<iostream>#include<map> usin 阅读全文
posted @ 2012-10-31 21:27 sorryhao 阅读(256) 评论(0) 推荐(0)