Gym - 101875L PC is for kicking【bfs】

参考大佬的博客写的很好https://blog.csdn.net/gtgym321/article/details/90145411ios 题目 传送门 web Input 5 2 1 2 1 3 2 5 3 4 Output 4svg 题意:给出两个数n,m,下面是n-1行,每行有两个数表示连通,从m点开始走最多能走过几个点(不能重复)spa 思路bfs遍历.net AC code #inclu
相关文章
相关标签/搜索