摘要: //01背包变形(三类情况,不增不减,增砝码,减砝码) include<bits/stdc++.h> using namespace std; const int N=110,M=200010,b=M/2; int v[N],f[N][M]; int main() { int n,sum; cin> 阅读全文
posted @ 2024-01-27 20:05 伊芙加登 阅读(10) 评论(0) 推荐(0)
摘要: include... using namespace std; const int N=1e6+10; int c[N],tmp[N]; void merge(int c[],int l,int r);//归并(稳定) void quick(int c[],int l,int r)//快排(不稳定) 阅读全文
posted @ 2024-01-27 19:13 伊芙加登 阅读(32) 评论(0) 推荐(0)
摘要: include<bits/stdc++.h> using namespace std; int m[100000],k[100000]; int main() { int n; cin>>n; int a,ans=0,count=0; for(int i=0;i<n;i++) { cin>>a; a 阅读全文
posted @ 2024-01-27 18:48 伊芙加登 阅读(51) 评论(0) 推荐(0)
摘要: include <bits/stdc++.h> using namespace std; vector v;//vector map的应用 //先将所有情况用vector存入,再利用map容器的特性输出 int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31 阅读全文
posted @ 2024-01-27 18:07 伊芙加登 阅读(5) 评论(0) 推荐(0)
摘要: include using namespace std; const int N=1010; int a[N][N],b[N][N]; void insert(int x1,int y1,int x2,int y2,int c) { b[x1][y1]+=c; b[x2+1][y1]-=c; b[x 阅读全文
posted @ 2024-01-27 17:46 伊芙加登 阅读(48) 评论(0) 推荐(0)