上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页
摘要: Description Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Bec... 阅读全文
posted @ 2015-08-18 19:33 martinue 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description Ali has taken the Computer Organization and Architecture course this term. He learned that there may be dependence between instructi... 阅读全文
posted @ 2015-08-18 19:21 martinue 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Description Dandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distribute rewards to his workers. Now he h... 阅读全文
posted @ 2015-08-18 19:17 martinue 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Description 有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。 球赛的规则如下: 如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么就认定,A一定能打败C。 如果A打败了B,B又打败了C,而且,C又打败了A,那么A、B、C三者都不可能成为冠军... 阅读全文
posted @ 2015-08-18 19:11 martinue 阅读(794) 评论(0) 推荐(0) 编辑
摘要: Description 有N个比赛队(1#include #include #include using namespace std;int a[510][510],rd[510],z[510];void bfs(int n){ int x=0; while(x<n) ... 阅读全文
posted @ 2015-08-18 19:01 martinue 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 说明转载出处:http://www.cppblog.com/mythit/archive/2009/04/21/80633.html 感谢大牛的博客!! 首先简要介绍一下AC自动机:Aho-Corasick automation,该算法在1975年产生于贝尔实验室,是著名的多模匹配算法之一。一个... 阅读全文
posted @ 2015-08-13 21:20 martinue 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description The Fibonacci sequence is the sequence of numbers such that every element is equal to the sum of the two previous elements, except f... 阅读全文
posted @ 2015-08-13 17:06 martinue 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Description A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find al... 阅读全文
posted @ 2015-08-12 15:07 martinue 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过... 阅读全文
posted @ 2015-08-12 14:45 martinue 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a hist... 阅读全文
posted @ 2015-08-12 14:36 martinue 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页