摘要: 有一个箱子容量为 V(正整数,0#include#include#include#include#include#include#include#include#include#include//--------... 阅读全文
posted @ 2019-08-21 16:26 风骨散人 阅读(155) 评论(0) 推荐(0) 编辑
摘要: N个整数组成的序列a[1],a[2],a[3],…,a[n],求该序列如a[i]+a[i+1]+…+a[j]的连续子段和的最大值。当所给的整数均为负数时和为0。例如:-2,11,-4,13,-5,-2,和最大的子... 阅读全文
posted @ 2019-08-21 16:07 风骨散人 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的)。比如两个串为: abcicbaabdkscab ab是两个串的子序列,abc也是,abca也是,其中abca是这两个字符串最长的子序列。 收... 阅读全文
posted @ 2019-08-21 15:55 风骨散人 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 时间过的真快,最近做题的感觉,和学习的感觉终于有了,无论是对题目的判断,还是代码的完成上,都找回来感觉,学习也带劲,对于知识,昨天学的不多,上午DP,下午发水,弄完水回去就睡着了,睡到了下午四点多,接着看DP,主... 阅读全文
posted @ 2019-08-21 09:23 风骨散人 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount sys... 阅读全文
posted @ 2019-08-21 09:15 风骨散人 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Roma works in a company that sells TVs. Now he has to prepare a report for the last year.Roma has got a l... 阅读全文
posted @ 2019-08-21 09:13 风骨散人 阅读(114) 评论(0) 推荐(0) 编辑
摘要: A recently found Ancient Prophesy is believed to contain the exact Apocalypse date. The prophesy is a str... 阅读全文
posted @ 2019-08-21 09:11 风骨散人 阅读(186) 评论(0) 推荐(0) 编辑
摘要: CodeForces - 260CLittle Vasya had n boxes with balls in the room. The boxes stood in a row and were number... 阅读全文
posted @ 2019-08-21 09:10 风骨散人 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Little Elephant loves magic squares very much. A magic square is a 3 × 3 table, each cell contains some positive integer. At that the sums of integers 阅读全文
posted @ 2019-08-21 09:08 风骨散人 阅读(302) 评论(0) 推荐(0) 编辑
摘要: C. Little Elephant and Bits time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The Little E 阅读全文
posted @ 2019-08-21 09:08 风骨散人 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Little Vitaly loves different algorithms. Today he has invented a new algorithm just for you. Vitaly's algorithm works with string s, consisting of ch 阅读全文
posted @ 2019-08-21 09:07 风骨散人 阅读(487) 评论(0) 推荐(0) 编辑
摘要: Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount systems. There are m types of discounts. We ass 阅读全文
posted @ 2019-08-21 09:04 风骨散人 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Roma works in a company that sells TVs. Now he has to prepare a report for the last year. Roma has got a list of the company's incomes. The list is a 阅读全文
posted @ 2019-08-21 08:55 风骨散人 阅读(273) 评论(0) 推荐(0) 编辑
摘要: A recently found Ancient Prophesy is believed to contain the exact Apocalypse date. The prophesy is a string that only consists of digits and characte 阅读全文
posted @ 2019-08-21 08:46 风骨散人 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Little Vasya had n boxes with balls in the room. The boxes stood in a row and were numbered with numbers from 1 to n from left to right. Once Vasya ch 阅读全文
posted @ 2019-08-21 08:43 风骨散人 阅读(132) 评论(0) 推荐(0) 编辑