{"categories":["AOJ"],"height":"190","blog_url":"https://otaks.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fotaks.hatenadiary.org%2Fentry%2F20120219%2F1329645368\" title=\"AOJ - Problem 1023 : Amazing Graze - \u3072\u3088\u3063\u3053\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u554f\u984c\u6587 AN\u500b\u306e\u6226\u95d8\u6a5f\u3068BN\u500b\u306e\u6575\u5f3e\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306e\u6226\u95d8\u6a5f\u306b\u3064\u3044\u3066\u8ddd\u96e2\u304c4*R\u4ee5\u5185\u306b\u3042\u308b\u6575\u5f3e\u3092\u6570\u3048\u308b\u554f\u984c\u3067\u3057\u305f(\u8ddd\u96e2\u306f\u6226\u95d8\u6a5f\u306e\u4e2d\u5fc3\u5ea7\u6a19\u304b\u3089\u6575\u5f3e\u306e\u4e2d\u5fc3\u5ea7\u6a19\u307e\u3067\u306e\u8ddd\u96e2\u3067\u8a08\u7b97)\u3002AN,BN \u5404\u6226\u95d8\u6a5f\u306b\u3064\u3044\u3066\u81ea\u5206\u306e\u3044\u308b\u533a\u753b\u3068\u305d\u306e\u5468\u56f28\u533a\u753b\u3060\u3051\u8abf\u3079\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u8abf\u3079\u308b\u6570\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 #include <cstdio> #include <vector> #include <map> #include <algorithm> using namespace std; typedef pair<int,int> P; int dx[9] = {-1,-1,-1,0,0,0,1,1,1}; in\u2026","width":"100%","author_name":"otaks","version":"1.0","provider_url":"https://hatena.blog","url":"https://otaks.hatenadiary.org/entry/20120219/1329645368","published":"2012-02-19 18:56:08","type":"rich","provider_name":"Hatena Blog","blog_title":"\u3072\u3088\u3063\u3053\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","image_url":null,"author_url":"https://blog.hatena.ne.jp/otaks/","title":"AOJ - Problem 1023 : Amazing Graze"}