上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 31 下一页
摘要: DescriptionAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows ... 阅读全文
posted @ 2014-11-20 21:45 NYNU_ACM 阅读(165) 评论(0) 推荐(0) 编辑
摘要: DescriptionJudge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce... 阅读全文
posted @ 2014-11-20 21:41 NYNU_ACM 阅读(104) 评论(0) 推荐(0) 编辑
摘要: DescriptionPhysics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils ha... 阅读全文
posted @ 2014-11-20 21:38 NYNU_ACM 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 单模式匹配算法:给定一个单词和一个字符串,查看字符串中是否存在该单词,通过调用strstr函数进行匹配;下面给出相应代码实现:#include#include#include#include using namespace std ; int main() { char word[1000]... 阅读全文
posted @ 2014-11-20 20:49 NYNU_ACM 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 多模式匹配算法:给定几个特定的单词和一篇文章,查看文章中出现特定单词的次数;多模式匹配算法通常有以下几个步骤组成:1、通过几个给定的单词建立字典树2、对字典树建立匹配失败后的指针3、对给定的文章进行进行匹配,可以在线性时间内完成下面给出相应代码:#include#include#include#in... 阅读全文
posted @ 2014-11-20 17:52 NYNU_ACM 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Problem C: Andy’s First DictionaryTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 18 Solved: 5[Submit][Status][Web Board]DescriptionAndy, 8, has a dream... 阅读全文
posted @ 2014-11-19 13:53 NYNU_ACM 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 题意:给出一篇英文文章,统计文章中出现的单词并按字典序排序,同时去掉重复的单词;解题思路:1、通过strtok函数对文章进行单词的截取,第一个字符如果是大写要转化成小写;2、通过向set容器中插入单词同时进行排序;3、输出set容器中的单词;相应代码如下:#include#include#inclu... 阅读全文
posted @ 2014-11-18 19:19 NYNU_ACM 阅读(751) 评论(0) 推荐(0) 编辑
摘要: Problem B: Excuses, Excuses!Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 4 Solved: 2[Submit][Status][Web Board]DescriptionJudge Ito is having a probl... 阅读全文
posted @ 2014-11-18 17:11 NYNU_ACM 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Problem A: Artificial Intelligence?Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 12 Solved: 4[Submit][Status][Web Board]DescriptionPhysics teachers in... 阅读全文
posted @ 2014-11-17 18:23 NYNU_ACM 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题意:给出一段字符串,其中包含P、U、I中两个变量的值,通过公式P=U*I的转换,求出第三个变量的值。通过以下步骤解决该问题:1、查找到第一个“=”字符,该字符的左边为变量名,右边为变量的值;2、用字符变量a来记录第一个“=”左边的变量名,用整型变量A记录“=”右边的数值;3、“=”右边每取一个整数... 阅读全文
posted @ 2014-11-16 23:39 NYNU_ACM 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 31 下一页