hdu 1058
摘要:
1 ->?1 ->2=min(1*2,1*3,1*5,1*7)1 ->2 ->3=min(2*2,1*3,1*5,1*7)1 ->2 ->3 -> 4 = min(2*2,2*3,1*5,1*7)1 ->2 ->3 -> 4 ->5= min(3*2,2*3,1*5,1*7)状态转移方程F(n)=min(F(i)*2,F(j)*3,F(k)*5,F(m)*7)(n>i,j,k,m)特别的:i,j,k,m 只有在本项被选中后才移动#include#include#includeusing namespace std;cons 阅读全文
posted @ 2013-07-31 20:11 blieveboy 阅读(64) 评论(0) 推荐(0) 编辑