2022年12月2日
摘要: #include "bits/stdc++.h" using namespace std; const int N=2e3+3; int n,a[N],b[N],f[N][N]; int A=1e9; void sov(){ int i,j,k; for(i=1;i<=n;i++)b[i]=a[i] 阅读全文
posted @ 2022-12-02 23:27 towboat 阅读(26) 评论(0) 推荐(0)
摘要: #include "bits/stdc++.h" using namespace std; const int N=1e3+3; int n,m,a[N][N],s[N][N]; int A; int w[N],h[N],pp; void sov(int x){ int i,ans=0; pp=0; 阅读全文
posted @ 2022-12-02 19:43 towboat 阅读(20) 评论(0) 推荐(0)
摘要: 超市里有n件商品,每件商品都有利润v[i] 和过期时间tm[i] , 每天只能卖一件商品,过期商品不能卖。 求可以得到的最大收益 #include "bits/stdc++.h" using namespace std; const int N=1e5+5; struct T{ int v,tm; 阅读全文
posted @ 2022-12-02 18:14 towboat 阅读(21) 评论(0) 推荐(0)