搜索结果
查询Tags标签: nowvisit,共有 3条记录-
1034 Head of a Gang (30 分)
One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to be the total time length of all the phone calls made b…
2022/2/24 23:55:22 人评论 次浏览 -
强化阶段 Day 22 算法笔记 10.3 图的遍历
目录1.Head of a Gang 2.邻接矩阵版bfs 3.邻接表 4.带层号 5.Forwards on Weibo1.Head of a Gang #include<cstdio> #include<vector> #include<cstring> #include<string> #include<stack> #include<set> #include<map> #incl…
2021/12/31 20:38:56 人评论 次浏览 -
强化阶段 Day 22 算法笔记 10.3 图的遍历
目录1.Head of a Gang 2.邻接矩阵版bfs 3.邻接表 4.带层号 5.Forwards on Weibo1.Head of a Gang #include<cstdio> #include<vector> #include<cstring> #include<string> #include<stack> #include<set> #include<map> #incl…
2021/12/31 20:38:56 人评论 次浏览