摘要: #include#include#include#include#includeusing namespace std;const int inf=0x7fffffff;const int N=10000+5;int p,t,f1[N],f2[N],dis1[N],dis2[N];s... 阅读全文
posted @ 2015-09-29 23:26 xryz 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;typedef long long ll;const int inf=0xfffffff;const int M=1000000+5;struct Edge{ int u,v,w;} edge[M];int n,m,dis... 阅读全文
posted @ 2015-09-29 23:25 xryz 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;const int N= 200000+5;int a[N],ans;struct Tree{ int left,right; int sum;}tree[4*N+10];void build(int id,int ... 阅读全文
posted @ 2015-09-29 14:27 xryz 阅读(102) 评论(0) 推荐(0) 编辑