提示:队列,bfs

 

例题:

 https://www.luogu.com.cn/problem/P7113 排水系统(题解:https://www.cnblogs.com/rakugaki/p/15961835.html)

模板:

 

posted on 2022-03-03 20:29  Josee不是john  阅读(18)  评论(0)    收藏  举报