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
相關文章
相關標籤/搜索