摘要: hihocoder #1059 :String Matching Content Length 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 We define the matching contents in the strings of strA and strB 阅读全文
posted @ 2016-07-16 14:58 mxzf0213 阅读(258) 评论(0) 推荐(0) 编辑
摘要: hihocoder #1067 : 最近公共祖先·二 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 上上回说到,小Hi和小Ho用非常拙劣——或者说粗糙的手段山寨出了一个神奇的网站,这个网站可以计算出某两个人的所有共同祖先中辈分最低的一个是谁。远在美国的他们利用了一些奇 阅读全文
posted @ 2016-07-16 10:01 mxzf0213 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 数的计数(number) 题目描述 我们要求找出具有下列性质数的个数(包含输入的自然数n),先输入一个自然数n(n≤1000),然后对此自然数按照如下方法进行处理: (1)不作任何处理; (2)在它的左边加上一个自然数,但该自然数不能超过原数的一半; (3)加上数后,继续按此规则进行处理,直到不能再 阅读全文
posted @ 2016-07-16 08:40 mxzf0213 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 滑雪(ski) 题目描述 Michael喜欢滑雪。这并不奇怪,因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道在一个区域中最长的滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。 Michael喜欢滑雪 阅读全文
posted @ 2016-07-15 23:41 mxzf0213 阅读(390) 评论(0) 推荐(0) 编辑
摘要: Puzzles Barney lives in country USC (United States of Charzeh). USC has n cities numbered from 1 through n and n - 1 roads between them. Cities and ro 阅读全文
posted @ 2016-07-15 10:36 mxzf0213 阅读(299) 评论(0) 推荐(0) 编辑
摘要: Lorenzo Von Matterhorn Barney lives in NYC. NYC has infinite number of intersections numbered with positive integers starting from 1. There exists a b 阅读全文
posted @ 2016-07-15 09:50 mxzf0213 阅读(302) 评论(0) 推荐(0) 编辑
摘要: Barnicle Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance betwe 阅读全文
posted @ 2016-07-15 09:42 mxzf0213 阅读(542) 评论(0) 推荐(0) 编辑
摘要: Exponential notation You are given a positive decimal number x. Your task is to convert it to the "simple exponential notation". Let x = a·10b, where 阅读全文
posted @ 2016-07-15 09:27 mxzf0213 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 7月15日 今天不该打cf的,55555 手贱把B题给锁了,然后看别人的代码发现我的那个输0.0e0没答案。。。 C题二叉树性质,写了好久,平时写的太少,哎 代码太丑,就不发了,哭! 阅读全文
posted @ 2016-07-15 02:32 mxzf0213 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 7月14日 今天cf出题人略变态了,a题文字游戏(欺负我英语不好),b题考眼力,c题貌似有点烦,d题比较正常,e,f不会。。。 早点睡觉,终于要小学期了,激动ing 阅读全文
posted @ 2016-07-14 01:39 mxzf0213 阅读(131) 评论(0) 推荐(0) 编辑