摘要:
Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了... 阅读全文
摘要:
Description据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR... 阅读全文
摘要:
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 ... 阅读全文
摘要:
Description 随着杭州西湖的知名度的进一步提升,园林规划专家湫湫希望设计出一条新的经典观光线路,根据老板马小腾的指示,新的风景线最好能建成环形,如果没有条件建成环形,那就建的越长越好。 现在已经勘... 阅读全文
摘要:
DescriptionGiven a tree (a connected graph with no cycles), you have to find the farthest nodes in the tre... 阅读全文
摘要:
DescriptionA school bought the first computer some time ago(so this computer's id is 1). During the recent... 阅读全文
摘要:
DescriptionThe northern part of the Pyramid contains a very large and complicated labyrinth. The labyrinth... 阅读全文
摘要:
DescriptionBuilding and maintaining roads among communities in the far North is an expensive business. Wit... 阅读全文