{"categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"published":"2019-07-08 21:30:09","height":"190","version":"1.0","blog_url":"https://blog.hamayanhamayan.com/","width":"100%","description":"https://atcoder.jp/contests/abc133/tasks/abc133_f \u524d\u63d0\u77e5\u8b58 LCA \u30af\u30a8\u30ea\u5148\u8aad\u307f \u89e3\u8aac https://atcoder.jp/contests/abc133/submissions/6312857\u91cd\u8981\u306a\u3053\u3068\u3068\u3057\u3066\u3001\u5236\u7d04\u3092\u7c21\u5358\u306b\u3057\u305f\u554f\u984c\u304c\u89e3\u3051\u306a\u3044\u304b\u8003\u3048\u3066\u307f\u308b\u3002 \u4eca\u56de\u3067\u8a00\u3046\u3068\u3001\u8fba\u306e\u9577\u3055\u306e\u5909\u66f4\u304c\u96e3\u3057\u3044\u306e\u3067\u3001\u3053\u308c\u3092\u629c\u3044\u3066\u307f\u308b\u3002 \u3059\u308b\u3068\u3001\u6728\u306e2\u9802\u70b9\u306e\u8ddd\u96e2\u3068\u306a\u308b\u3002 \u3053\u308c\u306fLCA\u3092\u4f7f\u3048\u3070\u89e3\u3051\u308b\u3002 \u3053\u308c\u3092\u767a\u5c55\u3055\u305b\u3066\u89e3\u3044\u3066\u3044\u3053\u3046\u3002 LCA\u3092\u4f7f\u3063\u305f\u5178\u578b\u30c6\u30af\u3068\u3057\u3066\u3001\u300cdist(\u6839,a) + dist(\u6839,b) - 2*dist(\u6839,lca(a,b))\u300d\u304c\u3042\u308a\u3001\u4eca\u56de\u3082\u2026","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F07%2F08%2F213009\" title=\"Colorful Tree [AtCoder Beginner Contest 133 F] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","type":"rich","provider_url":"https://hatena.blog","author_name":"hamayanhamayan","image_url":null,"provider_name":"Hatena Blog","url":"https://blog.hamayanhamayan.com/entry/2019/07/08/213009","title":"Colorful Tree [AtCoder Beginner Contest 133 F]"}