【题解】洛谷P1233木棍加工 贪心

题目连接 按照长度降序排序,再根据宽度来算。node #include<cstdio> #include<algorithm> using namespace std; #define _rep(i,a,b) for(int i=(a);i<=(b);i++) const int N=5e3+10; int n,vis[N]; struct node{ int l,w; bool
相关文章
相关标签/搜索