摘要: #include<bits/stdc++.h>using namespace std;int ab[10];struct node{ int hp,num;//num为了方便跟踪每一个hp值 bool operator < (const node &x)const{ return hp>x.hp;/ 阅读全文
posted @ 2018-08-19 20:50 sewage 阅读(181) 评论(0) 推荐(0) 编辑
摘要: //代码跑的很慢四秒会超时,结尾附两秒代码(标程) #include<bits/stdc++.h>using namespace std;typedef long long ll;const ll inf=0x3f3f3f3f;vector<pair<int,int>>tree[100010];ll 阅读全文
posted @ 2018-08-19 20:45 sewage 阅读(373) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;long long sum=0;struct node{ int a,b,len;}road[500010];int pre[500010];bool cmp(node a,node b){ return a.le 阅读全文
posted @ 2018-08-19 20:41 sewage 阅读(206) 评论(0) 推荐(0) 编辑