摘要: Description Description Description 奶牛们在FJ的养育下茁壮成长。这天,FJ给了奶牛Bessie一个任务,去看看每个奶牛场中若干只奶牛的身高,由于Bessie是只奶牛,无法直接看出第i只奶牛的身高,而只能看出第i只奶牛与第j只奶牛的身高差,其中第i 只奶牛与第j只 阅读全文
posted @ 2016-05-07 21:54 mengyue 阅读(328) 评论(0) 推荐(0) 编辑
摘要: Description 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 fin 阅读全文
posted @ 2016-05-07 17:27 mengyue 阅读(186) 评论(1) 推荐(0) 编辑
摘要: Description 最经,skyzhong得到了一本好厉害的字典,这个字典里整整有n个单词(1<=n<=200000) 现在skyzhong需要在字典里查询以某一段字母开头的单词 如:skyzhong想查询a 那么只要是a开头的单词就可以了 skyzhong只想知道里面有没有这一个单词(因为没有 阅读全文
posted @ 2016-05-07 14:37 mengyue 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Description Description Description 判断一些数字在一个数列中是否存在。 Input 第一行输入两个正整数m和n。 第二行m个数字表示这个数列。 第三行n个数字表示需要判断的数字。 Output 输出共一行n个0或1,0表示这个数字不存在,1表示存在。 Sample 阅读全文
posted @ 2016-05-07 11:07 mengyue 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a g 阅读全文
posted @ 2016-05-07 09:00 mengyue 阅读(232) 评论(0) 推荐(0) 编辑