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
相關文章
相關標籤/搜索