摘要: 要注意一开始将所有为'1'的点入队,然后通过一次BFS去更新所有点的距离,直到无法更新为止。 1 #include 2 #include 3 #include 4 using namespace std; 5 const int dx[]={0,0,-1,1},dy[]={1,-1,0,0}; 6 ... 阅读全文
posted @ 2014-09-08 18:38 AutSky_JadeK 阅读(291) 评论(1) 推荐(0)
TVアニメ「Charlotte(シャーロット)」公式サイト TVアニメ「Charlotte(シャーロット)」公式サイト