摘要:
有一个箱子容量为 V(正整数,0#include#include#include#include#include#include#include#include#include#include//--------... 阅读全文
摘要:
N个整数组成的序列a[1],a[2],a[3],…,a[n],求该序列如a[i]+a[i+1]+…+a[j]的连续子段和的最大值。当所给的整数均为负数时和为0。例如:-2,11,-4,13,-5,-2,和最大的子... 阅读全文
摘要:
给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的)。比如两个串为: abcicbaabdkscab ab是两个串的子序列,abc也是,abca也是,其中abca是这两个字符串最长的子序列。 收... 阅读全文
摘要:
时间过的真快,最近做题的感觉,和学习的感觉终于有了,无论是对题目的判断,还是代码的完成上,都找回来感觉,学习也带劲,对于知识,昨天学的不多,上午DP,下午发水,弄完水回去就睡着了,睡到了下午四点多,接着看DP,主... 阅读全文
摘要:
Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount sys... 阅读全文
摘要:
Roma works in a company that sells TVs. Now he has to prepare a report for the last year.Roma has got a l... 阅读全文
摘要:
A recently found Ancient Prophesy is believed to contain the exact Apocalypse date. The prophesy is a str... 阅读全文
摘要:
CodeForces - 260CLittle Vasya had n boxes with balls in the room. The boxes stood in a row and were number... 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文