{"published":"2018-04-16 21:59:15","author_name":"Udomomo","url":"https://udomomo.hatenablog.com/entry/2018/04/16/215915","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fudomomo.hatenablog.com%2Fentry%2F2018%2F04%2F16%2F215915\" title=\"Python\u3067\u5e45\u512a\u5148\u63a2\u7d22\u3092\u5b9f\u88c5\u3059\u308b - \u308a\u3093\u3054\u3068\u30d0\u30ca\u30ca\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","blog_title":"\u308a\u3093\u3054\u3068\u30d0\u30ca\u30ca","image_url":null,"author_url":"https://blog.hatena.ne.jp/Udomomo/","type":"rich","blog_url":"https://udomomo.hatenablog.com/","categories":["Python"],"description":"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u52c9\u5f37\u306e\u305f\u3081\u306b\u3001\u5e45\u512a\u5148\u63a2\u7d22\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 \u4f7f\u3063\u305f\u306e\u306fAtCoder Beginers Contest 007C\u306e\u554f\u984c\u3002\u3053\u306e\u9803\u306f\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u305d\u306e\u307e\u307e\u51fa\u984c\u3055\u308c\u3066\u305f\u3088\u3046\u3060\u3002 \u7279\u6b8a\u4e8b\u9805\u3068\u3057\u3066\u3001\u3053\u306e\u554f\u984c\u3067\u306f\u30b9\u30bf\u30fc\u30c8\u304b\u3089\u30b4\u30fc\u30eb\u307e\u3067\u306f\u5fc5\u305a\u884c\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u524d\u63d0\u304c\u3042\u308b\u3002\u3055\u3089\u306b\u5468\u308a\u4e2d\u304c\u58c1\u3067\u56f2\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u76e4\u9762\u304b\u3089\u306f\u307f\u51fa\u3059\u306e\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3002 \u5b9f\u88c5 from collections import deque def bfs(maze, visited, sy, sx, gy, gx): queue = deque([[sy, sx]]) visited[sy][sx] = 0 while que\u2026","provider_name":"Hatena Blog","height":"190","provider_url":"https://hatena.blog","title":"Python\u3067\u5e45\u512a\u5148\u63a2\u7d22\u3092\u5b9f\u88c5\u3059\u308b"}