摘要: 题目链接 https://www.acwing.com/problem/content/2062/ 思路 用flood fill算法标记两个斑点的所有位置,枚举这两个斑点求出曼哈顿距离即可。 AC代码 #include <iostream> #include <algorithm> #include 阅读全文
posted @ 2022-01-20 21:53 张牧歌 阅读(37) 评论(1) 推荐(1) 编辑