Would You like to Share!

Tag: 动态规划

POJ 1837 Balance解题报告(动态规划)

by NENU_ACM_Club on Aug.05, 2008, under ACM Reports

题目大意:
输入一个天平若干(<=20)挂钩的位置,将若干(<=20)砝码挂到天平上,问有多少种使天平挂平衡的方法。

Leave a Comment :, , , more...

POJ1836【动态规划】

by NENU_ACM_Club on Aug.02, 2008, under ACM Reports

题目大意:
给出系列数字,要求求出一个最长串,使得任意一个数字都不在两个大于等于它的数字中间
题意理解
这题主要是要求一个不降序列和一个不升序列的序列,由此,可以看到跟2533(最长不降序列)很相像。实际上,也只要考虑几个小问题就行了。

Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!