【題解】洛谷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
相關文章
相關標籤/搜索