UVA 437 The Tower of Babylon 巴比伦塔(DAG上的动态规划)

题意:给n中立方体,每种无限多个,求能堆成塔的最高高度(必须严格知足上面的长宽小于下面的)node AC代码以下:c++ #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn=30+2; struct node{ int x,y,z; node(int x=0,int
相关文章
相关标签/搜索