{"url":"https://yosupo.hatenablog.com/entry/2014/12/26/001414","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2014%2F12%2F26%2F001414\" title=\"Do use segment tree - \u3088\u3059\u307d\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yosupo","provider_name":"Hatena Blog","width":"100%","author_url":"https://blog.hatena.ne.jp/yosupo/","height":"190","categories":[],"image_url":null,"blog_title":"\u3088\u3059\u307d\u306e\u65e5\u8a18","description":"Do use segment tree\u3060\u3051\u3069HL\u5206\u89e3\u306f\u6016\u3044\u3057\u3084\u308a\u65b9\u304c\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u3067Segment Tree\u306f\u4f7f\u308f\u305aLink-Cut Tree\u3092\u4f7f\u7528\u3002 \u3081\u3061\u3083\u96d1\u306b\u66f8\u3044\u305f\u3051\u3069\u60f3\u50cf\u306e10\u500d\u3050\u3089\u3044\u901f\u304b\u3063\u305f\u3002\u3044\u3064\u304bSplay\u6728\u306e\u30dd\u30c6\u30f3\u30b7\u30e3\u30eb\u4e91\u3005\u3092\u8aad\u3093\u3067\u304a\u3053\u3046\u2026 \u5e73\u8861\u4e8c\u5206\u6728\u306e\u5b50\u304c\u5de6\u53f3\u5165\u308c\u66ff\u308f\u3063\u3066\u3082\u5024\u304c\u5165\u308c\u66ff\u308f\u3089\u306a\u3044\u3082\u306e(sum, max\u3068\u304b)\u3057\u304b\u6271\u3063\u3066\u3053\u306a\u304b\u3063\u305f\u305f\u3081\u30d0\u30b0\u3063\u305f\u3001\u826f\u3044\u77e5\u898b\u3002 \u5e73\u884c\u4e8c\u5206\u6728\u306e\u6c4e\u7528\u6027\u306e\u9ad8\u3055\u306b\u306f\u672c\u5f53\u306b\u9a5a\u304b\u3055\u308c\u308b #include <iostream> #include <cstring> #include <algorithm> #include <vector> #include\u2026","published":"2014-12-26 00:14:14","blog_url":"https://yosupo.hatenablog.com/","version":"1.0","title":"Do use segment tree"}