随笔分类 -  动态规划

摘要:DescriptionBessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her nextN(1 ≤N≤ 1... 阅读全文
posted @ 2016-01-20 17:14 啦咯 阅读(342) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionFatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of mi... 阅读全文
posted @ 2016-01-19 11:33 啦咯 阅读(228) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share... 阅读全文
posted @ 2016-01-18 10:36 啦咯 阅读(238) 评论(0) 推荐(0) 编辑
摘要:Problem DescriptionNow I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more diffic... 阅读全文
posted @ 2015-12-13 18:09 啦咯 阅读(401) 评论(0) 推荐(0) 编辑
摘要:A rook is a piece used in the game of chess which is played on a board of square grids. A rook can only move vertically or horizontally from its curre... 阅读全文
posted @ 2015-10-27 14:51 啦咯 阅读(176) 评论(0) 推荐(0) 编辑
摘要:滑雪DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 ... 阅读全文
posted @ 2015-05-04 20:40 啦咯 编辑
摘要:Problem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action... 阅读全文
posted @ 2015-04-28 15:40 啦咯 编辑
摘要:Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know... 阅读全文
posted @ 2015-04-28 13:49 啦咯 编辑
摘要:Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline o... 阅读全文
posted @ 2015-04-27 20:22 啦咯 编辑
摘要:Problem DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, a... 阅读全文
posted @ 2015-04-24 16:08 啦咯 编辑
摘要:#include#include#includeint main(){ _int64 n,a; while(scanf("%I64d",&n)!=EOF) { _int64 b=0,c; while(n--) { sc... 阅读全文
posted @ 2015-04-23 19:17 啦咯 编辑

点击右上角即可分享
微信分享提示