摘要:/* 又见01背包时间限制:1000 ms | 内存限制:65535 KB难度:3描述 有n个重量和价值分别为wi 和 vi 的 物品,从这些物品中选择总重量不超过 W 的物品,求所有挑选方案中物品价值总和的最大值。 1 <= n <=100 1 <= wi <= 10^7 1 <= vi <= 1
阅读全文
摘要:Splits the string 时间限制:1000 ms | 内存限制:65535 KB 难度:3 Hrdv is interested in a string,especially the palindrome string.So he wants some palindrome string
阅读全文
摘要:/* See LCS again时间限制:1000 ms | 内存限制:65535 KB难度:3描述 There are A, B two sequences, the number of elements in the sequence is n、m; Each element in the se
阅读全文
摘要:/* ones时间限制:1000 ms | 内存限制:65535 KB难度:3描述 Given a positive integer N (0<=N<=10000), you are to find an expression equals to N using only 1,+,*,(,). 1
阅读全文