Mud Puddles ( bfs )

传送门 题目 题解 直接bfs就行,有个坑点要注意:因为坐标存在负数,所以可以把所有点都+500转化为正数去做。 Code #include<bits/stdc++.h> #define debug1(x) cout<<#x<<"="<<x<<endl #define debug2(x,y) cout<<#x<<"="<<x<<' '<<#y<<"="<<y<<endl using namespa
相关文章
相关标签/搜索