摘要:
P3366 【模板】最小生成树 #include <bits/stdc++.h> using namespace std; const int nn = 5010; const int mm = 2e5 + 5; int n,m,fa[nn]; int ans,cnt; struct node{ i 阅读全文
posted @ 2020-02-09 20:34
Hazelxcf
阅读(78)
评论(0)
推荐(0)
摘要:
P4779 【模板】单源最短路径(标准版 #include <bits/stdc++.h> using namespace std; const int nn = 1e5 + 5; const int mm = 2e5 + 5; int d[nn],head[nn],ver[mm],edge[mm] 阅读全文
posted @ 2020-02-09 19:45
Hazelxcf
阅读(110)
评论(0)
推荐(0)
摘要:
https://www.luogu.com.cn/problem/P2024 创建三个集合,1同类域,2捕食域,3天敌域 x y是同类,说明x1-y1,x2-y2,x3-y3; x吃y 说明x捕食的物种是y的同类(x2 - y1),x是y的天敌(x3-y2) op = 1的时候,说明x,y是同类,与 阅读全文
posted @ 2020-02-09 10:43
Hazelxcf
阅读(127)
评论(0)
推荐(0)

浙公网安备 33010602011771号