protagonist
该文被密码保护。 阅读全文
posted @ 2019-02-11 22:34 czy-power 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 问题 E: 最大子序和 题目描述 输入一个长度为n的整数序列,从中找出一段不超过m的连续子序列,使得整个序列的和最大。例如 1,-3,5,1,-2,3当m=4时,S=5+1-2+3=7当m=2或m=3时,S=5+1=6 输入 第一行两个数n,m(n,m<=300000)第二行有n个数,要求在n个数找 阅读全文
posted @ 2019-02-11 21:35 czy-power 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 问题 b: SOLDIERS 题目描述 N soldiers of the land Gridland are randomly scattered around the country. A position in Gridland is given by a pair (x,y) of inte 阅读全文
posted @ 2019-02-11 16:44 czy-power 阅读(456) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-11 16:22 czy-power 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 问题 S: 绿豆蛙的归宿 题目描述 随着新版百度空间的下线,Blog宠物绿豆蛙完成了它的使命,去寻找它新的归宿。给出一个有向无环的连通图,起点为1终点为N,每条边都有一个长度。绿豆蛙从起点出发,走向终点。到达每一个顶点时,如果有K条离开该点的道路,绿豆蛙可以选择任意一条道路离开该点,并且走向每条路的 阅读全文
posted @ 2019-02-11 12:49 czy-power 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 问题 j: Place the Robots 题目描述 Robert is a famous engineer. One day he was given a task by his boss. The background of the task was the following:Given a 阅读全文
posted @ 2019-02-11 11:28 czy-power 阅读(256) 评论(0) 推荐(0) 编辑