{
    "componentChunkName": "component---src-templates-blog-post-jsx",
    "path": "/post/aoj-0179-mysterious-worm/",
    "result": {"data":{"site":{"siteMetadata":{"title":"WEB EGG","author":"Leko - CTO at Yuimedi"}},"markdownRemark":{"id":"beb23975-81a2-5cf7-b9ff-abd3698ad6f4","excerpt":"AOJの0179、Mysterious Wormをc++で解きました。 「典型的な横型探索」と言われていたのですが、 まぁ〜面白いほどにc++に馴染めなくて（mapが書き方が分からなくて）ハマりました。 一度見た虫の色を管理するclosedをどう書けばよいか悩みました。 わざわざmap…","html":"<p>AOJの0179、Mysterious Wormをc++で解きました。</p>\n<p>「典型的な横型探索」と言われていたのですが、<br>\nまぁ〜面白いほどにc++に馴染めなくて（mapが書き方が分からなくて）ハマりました。</p>\n<p>一度見た虫の色を管理するclosedをどう書けばよいか悩みました。<br>\nわざわざmap使わなくても済む方法があったら教えて下さい…。</p>\n<p>実装部分のみだと1時間弱くらいだと思います。 mapと戯れている間を含めると2時間弱でした。</p>\n<p>問題文は<a href=\"http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0179&#x26;lang=jp\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">こちら</a></p>\n<!--more-->\n<h2 id=\"コード\" style=\"position:relative;\"><a href=\"#%E3%82%B3%E3%83%BC%E3%83%89\" aria-label=\"コード permalink\" class=\"autolink-header before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>コード</h2>\n<script src=\"https://gist.github.com/Leko/5734862.js\"></script>","timeToRead":1,"frontmatter":{"title":"[AOJ] 0179 Mysterious Worm","tags":["AOJ","C++"],"date":"June 08, 2013","featuredImage":null}}},"pageContext":{"slug":"/aoj-0179-mysterious-worm/","previous":{"fields":{"slug":"/aoj-1179-mysterious-worm/"},"frontmatter":{"title":"[AOJ] 0179 Mysterious Worm","tags":["AOJ","C++"]}},"next":{"fields":{"slug":"/aoj-1179-millennium/"},"frontmatter":{"title":"[AOJ] 1179 Millennium","tags":["AOJ","C++"]}}}},
    "staticQueryHashes": ["2585454260","2954598359"]}