hdu1069线性dp

/* dp[i]:取第i个方块时最多能够累多高 */ #include<bits/stdc++.h> using namespace std; struct node{ int x,y,z; bool operator<(const node & a)const { if(x==a.x)return y>a.y; return x>a.x;
相关文章
相关标签/搜索