摘要: 滑雪(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 阅读(300) 评论(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 阅读(305) 评论(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 阅读(550) 评论(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 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 7月15日 今天不该打cf的,55555 手贱把B题给锁了,然后看别人的代码发现我的那个输0.0e0没答案。。。 C题二叉树性质,写了好久,平时写的太少,哎 代码太丑,就不发了,哭! 阅读全文
posted @ 2016-07-15 02:32 mxzf0213 阅读(116) 评论(0) 推荐(0) 编辑