02 2021 档案

摘要:1.图的遍历 1013 Battle Over Cities (25 分) 一种方法使用dfs求连通块的个数 #include <cstdio> #include <cstring> #include <string> #include <algorithm> #include <iostream> 阅读全文
posted @ 2021-02-26 01:18 sparkyen 阅读(134) 评论(0) 推荐(0) 编辑
摘要:1.树的遍历 1004 Counting Leaves (30分) 基本的数据结构——树,复习了链式前向星,bfs遍历判断即可 #include <cstdio> #include <cstring> #include <string> #include <algorithm> #include < 阅读全文
posted @ 2021-02-18 10:23 sparkyen 阅读(195) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示