{"type":"rich","author_name":"mayokoex","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F01%2F24%2F094908\" title=\"Facebook Hacker Cup 2016 Round 2 Snakes and Ladders - 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>","published":"2016-01-24 09:49:08","url":"https://mayokoex.hatenablog.com/entry/2016/01/24/094908","width":"100%","author_url":"https://blog.hatena.ne.jp/mayokoex/","provider_name":"Hatena Blog","blog_title":"mayoko\u2019s diary","height":"190","provider_url":"https://hatena.blog","title":"Facebook Hacker Cup 2016 Round 2 Snakes and Ladders","image_url":null,"description":"\u554f\u984c https://www.facebook.com/hackercup/problem/1640119959603837/ \u89e3\u6cd5 \u307e\u305a, \u306f\u3057\u3054\u3092\u5ea7\u6a19\u9806\u306b\u30bd\u30fc\u30c8\u3057\u3066, \u3088\u304f\u3042\u308b stack \u306e\u30a2\u30ec\u3092\u4f7f\u3044\u307e\u3059\u3002 mayokoex.hatenablog.com \u3053\u306e\u8a18\u4e8b\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u4f7f\u3048\u3070, O(N) \u3067\u3042\u308b\u30cf\u30b7\u30b4\u304b\u3089\u3069\u3053\u307e\u3067\u86c7\u304c\u7e4b\u304c\u308c\u308b\u306e\u304b\u304c\u308f\u304b\u308a\u307e\u3059\u3002dp[i] = (i \u756a\u76ee\u306e\u306f\u3057\u3054\u3068, i \u756a\u76ee\u306e\u306f\u3057\u3054\u3068\u9ad8\u3055\u306e\u7b49\u3057\u3044, \u86c7\u304c\u3064\u306a\u304c\u308b\u3053\u3068\u306e\u51fa\u6765\u308b i \u756a\u76ee\u672a\u6e80\u306e\u306f\u3057\u3054\u306e\u9593\u306b\u304a\u3051\u308b, \u86c7\u306e\u9577\u3055\u306e\u4e8c\u4e57\u306e\u548c) \u3068\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u554f\u984c\u6587\u306e Case #3 \u3060\u3068, dp[0] = 0 dp[1] =\u2026","blog_url":"https://mayokoex.hatenablog.com/","version":"1.0","categories":[]}