B. Fox And Two Dots

题记:本题目为cf的B题,一个图中是否有相同字母围城的环,思路为DFS,深度优先遍历,只要一个遍历的再次回到已经遍历的地方,那么久必定能组成环,具体见代码实现。 B. Fox And Two Dots time limit per test 2 seconds memory limit per test 256 megabytes input standard input output stand
相关文章
相关标签/搜索