https://blog.csdn.net/he_zhidan/article/details/140491627?spm=1001.2014.3001.5501【C++BFS】802. 找到最终的安全状态