在一个网格中,起点 S 每一轮向四周扩展一层。求扩展到所有可达格子至少需要多少轮。
S
输入网格地图。
输出需要的轮数。
1≤n,m≤301\le n,m\le 301≤n,m≤30
2 2 S. ..
2
使用您的 www.mathcoding.online 通用账户