{"title":"AOJ 2397 Three-way Branch","version":"1.0","width":"100%","blog_url":"https://mayokoex.hatenablog.com/","provider_name":"Hatena Blog","published":"2016-08-30 22:31:51","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F08%2F30%2F223151\" title=\"AOJ 2397 Three-way Branch - mayoko\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://mayokoex.hatenablog.com/entry/2016/08/30/223151","author_url":"https://blog.hatena.ne.jp/mayokoex/","blog_title":"mayoko\u2019s diary","type":"rich","height":"190","categories":["AOJ"],"description":"\u554f\u984c Three-way Branch | Aizu Online JudgeW*H \u306e\u30b0\u30ea\u30c3\u30c9\u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u3053\u308c\u3089\u306e\u3046\u3061, N \u500b\u306e\u30bb\u30eb\u306f\u901a\u308c\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002\u3042\u308b\u30bb\u30eb(x, y) \u304b\u3089\u306f (x-1, y+1) or (x, y+1) or (x+1, y+1) \u306b\u306e\u307f\u884c\u3051\u308b\u5834\u5408, (0, 0) \u304b\u3089 (W-1, H-1) \u307e\u3067\u306e\u7d4c\u8def\u306f\u4f55\u901a\u308a\u3042\u308b\u304b\u3002 \u89e3\u6cd5 W \u304c\u307e\u3041\u307e\u3041\u5c0f\u3055\u304f\u3066 H \u304c\u8d85\u3067\u304b\u3044\u306e\u3067\u884c\u5217\u7d2f\u4e57\u306a\u611f\u3058\u304c\u3057\u307e\u3059\u3002\u969c\u5bb3\u7269\u306f N \u500b\u3057\u304b\u306a\u3044\u306e\u3067, \u969c\u5bb3\u7269\u306e\u3042\u308b\u884c\u306b\u306a\u308b\u307e\u3067\u306f\u884c\u5217\u7d2f\u4e57 \u969c\u5bb3\u7269\u3042\u308b\u884c\u3067\u306f \u5bfe\u5fdc\u3059\u308b\u3068\u3053\u308d\u306e\u5834\u5408\u306e\u6570\u3092 0 \u306b\u3059\u308b \u3068\u3044\u3046\u3088\u3046\u306b\u3084\u308c\u3070 O(W^3 log H * \u2026","image_url":null,"provider_url":"https://hatena.blog","author_name":"mayokoex"}