2010年8月23日
摘要: MiYu原创, 转帖请注明 : 转载自______________白白の屋题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1800题目描述:[代码]In the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to fin... 阅读全文
posted @ 2010-08-23 17:42 MiYu 阅读(376) 评论(0) 推荐(0) 编辑
摘要: [代码]MiYu原创, 转帖请注明 : 转载自______________白白の屋由于STL是一个统一的整体,map的很多用法都和STL中其它的东 西结合在一起;map中由于它内部有序,由红黑树保证,因此很多函数执行的时间复杂度都是log2N的,如果用map函数可以实现的功能,而STL Algorithm也可以完成该功能,建议用map自带函数,效率高一些……Map是STL的... 阅读全文
posted @ 2010-08-23 17:38 MiYu 阅读(266) 评论(0) 推荐(0) 编辑
摘要: MiYu原创, 转帖请注明 : 转载自______________白白の屋题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1671题目描述:[代码]Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefi... 阅读全文
posted @ 2010-08-23 16:11 MiYu 阅读(404) 评论(0) 推荐(0) 编辑
摘要: MiYu原创, 转帖请注明 : 转载自______________白白の屋题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1251题目描述:[代码]Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input输入数据的第一部分是一... 阅读全文
posted @ 2010-08-23 11:04 MiYu 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--scanf中一种很少见但很有用的转换字符:[...]和[^...]。#include<stdio.h>intmain(){charstrings[100];scanf("%[1234567... 阅读全文
posted @ 2010-08-23 10:56 MiYu 阅读(838) 评论(0) 推荐(1) 编辑