摘要: #include<bits/stdc++.h>using namespace std;long long w[100007],sum[100007];int fa[100007],degree[100007],dp[100007],depth[100007];int flag[100007];int 阅读全文
posted @ 2018-10-10 21:13 sewage 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int a[1000007],b[1000007],c[1000007];int find_max(int lll,int rrr,int lenn){ int maxnn=0; int summ=0; for(i 阅读全文
posted @ 2018-10-07 20:37 sewage 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int x,y;vector<int>v1,v2;long long solve(vector<int>v){ long long sum=0; set<int>s; int len=v.size(); for(i 阅读全文
posted @ 2018-09-11 23:37 sewage 阅读(423) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n,m,k,l;int x[1007],y[1007],z[1007];int dp[1007][207];void init()//预处理n次处理后的情况{ for(int i=0;i<=l+100;i+ 阅读全文
posted @ 2018-09-11 22:49 sewage 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;priority_queue<pair<int,int>>q;int main(){ int t; int n; scanf("%d",&t); while(t--) { while(!q.empty()) q.p 阅读全文
posted @ 2018-08-26 09:23 sewage 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;string goods,sister[100010];int x,m;unordered_map<string,int>mp;vector<int>g[100010],great,les;int road(){ 阅读全文
posted @ 2018-08-25 10:00 sewage 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;typedef const long long ll;struct node{ int x,y; int pos;}plane[200020],tubao[200020],stt;int top;int n;lon 阅读全文
posted @ 2018-08-24 11:46 sewage 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n,m;int x,y;int num,cnt;int degree[100007],vis[100007],viss[400040],first[100007];vector<int>jidian,roa 阅读全文
posted @ 2018-08-23 11:44 sewage 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 有能力时再回来解决吧= ̄ω ̄= 2020.02.18 17:09 不出意外不会回来解决了😂。。。 旧坑暂不填了 阅读全文
posted @ 2018-08-23 09:03 sewage 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;const long long mod = 998244353;typedef const long long ll;vector<long long>p;long long inv(long long x,lon 阅读全文
posted @ 2018-08-22 20:32 sewage 阅读(567) 评论(0) 推荐(0) 编辑