{"author_url":"https://blog.hatena.ne.jp/JunKobayashi/","description":"\u91cd\u5fc3\u5206\u89e3\u3092\u5229\u7528\u3059\u308b\u3068\u52b9\u679c\u7684\u306b\u89e3\u3051\u308b\u5177\u4f53\u7684\u306a\u554f\u984c\u3092\u901a\u3057\u3066\u7406\u89e3\u3092\u6df1\u3081\u308b\u3002\u6728\u306e\u91cd\u5fc3\u5b66\u7fd2\u30b7\u30ea\u30fc\u30ba\u306e\u76f4\u8fd1\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0b\u306b\u63b2\u8f09\u3002 junkobayashi.hatenablog.com \u554f\u984c\u306e\u30da\u30fc\u30b8 ABC291 Ex - Balanced Tree \u554f\u984c\u6982\u8981 \\(N\\)\u9802\u70b9\u306e\u6728\\(T\\)\u304c\u4e0e\u3048\u3089\u308c\u3001\\(i\\)\u756a\u76ee\u306e\u8fba\u306f\u9802\u70b9\\((A_i,B_i)\\)\u306e\u9593\u3092\u7d50\u3093\u3067\u3044\u308b\u3002\u3053\u306e\u6642\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u3092\u5168\u3066\u6e80\u305f\u3059\u6839\u4ed8\u304d\u6728\\(R\\)\u3092\u4e00\u3064\u6c42\u3081\u3001\\(R\\)\u306b\u304a\u3051\u308b\u9802\u70b9\\(j\\)\u306e\u89aa\u3092\\(p_j\\)\u3068\u8868\u3059\u6642\u306b\u304a\u3051\u308b\\(p_j\\)\u3092\uff08\\(j\\)\u304c\u6839\u306a\u3089\u3070\\(-1\\)\u3092\uff09\u5168\u3066\u7a7a\u767d\u533a\u5207\u308a\u3067\u51fa\u529b\u305b\u3088\u3002 \\(R\\)\u306b\u304a\u3051\u308b\u4efb\u610f\u306e2\u9802\u70b9\\(\u2026","author_name":"JunKobayashi","blog_title":"JunKobayashi's Diary","height":"190","version":"1.0","categories":["\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u5b66\u7fd2","\u6728\u306e\u91cd\u5fc3"],"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/J/JunKobayashi/20261106/20261106034313.png","url":"https://junkobayashi.hatenablog.com/entry/2026/11/06/044319","width":"100%","type":"rich","provider_name":"Hatena Blog","title":"\u6728\u306e\u91cd\u5fc3\u3092\u7406\u89e3\u3059\u308b(2\uff1aABC291 Ex - Balanced Tree)","published":"2026-11-06 04:43:19","provider_url":"https://hatena.blog","blog_url":"https://junkobayashi.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2026%2F11%2F06%2F044319\" title=\"\u6728\u306e\u91cd\u5fc3\u3092\u7406\u89e3\u3059\u308b(2\uff1aABC291 Ex - Balanced Tree) - JunKobayashi&#39;s Diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}