摘要:
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequen... 阅读全文
摘要:
Description在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述的: 有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多少? 已经告诉你了,这是... 阅读全文
摘要:
DescriptionConsider an arbitrary sequence of integers. One can place + or - operators between integers in ... 阅读全文
摘要:
DescriptionThe system of Martians' blood relations is confusing enough. Actually, Martians bud when they w... 阅读全文
摘要:
DescriptionDandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distri... 阅读全文
摘要:
Description有N个比赛队(1#include#includeusing namespace std;int map[1001][1001];int die[1001];int cun[1001];voi... 阅读全文
摘要:
DescriptionBoudreaux likes to multitask, especially when it comes to using his computer. Never satisfied w... 阅读全文
摘要:
Description 小火山最近喜欢上了围棋。 对于围棋,其实小火山是一窍不通的。现在棋盘上,有很多小火山的棋子。 如果棋盘上有这样的一个位置, 那么这个位置也会变成小火山的棋子;这样的位置是指小火山的棋子... 阅读全文
摘要:
DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a... 阅读全文
摘要:
Description平面上有n条直线,且无三线共点,问这些直线能有多少种不同交点数。 比如,如果n=2,则可能的交点数量为0(平行)或者1(不平行)。Input输入数据包含多个测试实例,每个测试实例占一行,每行... 阅读全文