摘要: 学习链接http://www.cnblogs.com/JVxie/p/4854719.html #include #include #include #include #include using namespace std; #define maxn 100010 typedef long long ll; vectors[maxn],q[maxn]; vectorw[ma... 阅读全文
posted @ 2017-11-05 14:55 TimDucan 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; const int maxn=20001; int n,m,q,fa[maxn]; int find(int x){ if(fa[x]!=x) fa[x]=find(fa[x]); return fa[x]; } inline void un(int a,in... 阅读全文
posted @ 2017-11-05 08:07 TimDucan 阅读(112) 评论(0) 推荐(0) 编辑
摘要: for(int i=1;i<=n;i++) for(int j=1;j<=m;j++){ for(int l=1;l<=i;l++){ for(int r=1;r<=j;r++){ sum[i][j]+=a[l][r]; } ... 阅读全文
posted @ 2017-11-05 07:46 TimDucan 阅读(181) 评论(0) 推荐(0) 编辑