摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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 ... 阅读全文