上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 41 下一页
摘要: Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of nu 阅读全文
posted @ 2014-11-22 10:41 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
摘要: Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 阅读全文
posted @ 2014-11-21 21:05 wojiaohuangyu 阅读(13) 评论(0) 推荐(0)
摘要: 描述 Tom has fallen in love with Mary. Now Tom wants to show his love and write a number on the fence opposite to Mary’s house. Tom thinks that the larg 阅读全文
posted @ 2014-11-20 15:48 wojiaohuangyu 阅读(11) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=220 贪心算法 主要是除以二的那一点不好想,就是两排房子并行的 http://acm.nyist.net/JudgeOnline/problem.php?pid=220 #include<s 阅读全文
posted @ 2014-11-20 13:57 wojiaohuangyu 阅读(4) 评论(0) 推荐(0)
摘要: 描述 Here is a famous story in Chinese history. "That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play 阅读全文
posted @ 2014-11-18 22:29 wojiaohuangyu 阅读(14) 评论(0) 推荐(0)
摘要: 描述 Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the s 阅读全文
posted @ 2014-11-17 21:47 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: Problem Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input 输入包括多组数据。每组数据第一行是两个 阅读全文
posted @ 2014-11-17 14:12 wojiaohuangyu 阅读(5) 评论(0) 推荐(0)
摘要: Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til 阅读全文
posted @ 2014-11-16 16:13 wojiaohuangyu 阅读(10) 评论(0) 推荐(0)
摘要: Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的 阅读全文
posted @ 2014-11-14 23:50 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: Problem Description A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slide 阅读全文
posted @ 2014-11-13 12:21 wojiaohuangyu 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 41 下一页