{"blog_title":"\u3088\u3059\u307d\u306e\u65e5\u8a18","image_url":null,"title":"\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30de\u30fc\u30b8\u3059\u308b\u4e00\u822c\u7684\u306a\u30c6\u30af\u3092\u9ad8\u901f\u5316\u3059\u308b\u3084\u3084\u4e00\u822c\u7684\u306a\u30c6\u30af","type":"rich","blog_url":"https://yosupo.hatenablog.com/","published":"2023-11-30 01:38:08","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/yosupo/","url":"https://yosupo.hatenablog.com/entry/2023/11/30/013808","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2023%2F11%2F30%2F013808\" title=\"\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30de\u30fc\u30b8\u3059\u308b\u4e00\u822c\u7684\u306a\u30c6\u30af\u3092\u9ad8\u901f\u5316\u3059\u308b\u3084\u3084\u4e00\u822c\u7684\u306a\u30c6\u30af - \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","description":"\u77e5\u308b\u4eba\u305e\u77e5\u308b\u8b0e\u306e\u77e5\u8b58\u307f\u305f\u3044\u306b\u306a\u3063\u3066\u308b\u6c17\u304c\u3057\u305f\u306e\u3067\u30e1\u30e2\u3002 \u30b5\u30a4\u30ba $A$ \u3068\u30b5\u30a4\u30ba $B$ \u306e\u30c7\u30fc\u30bf\u69cb\u9020 ($A < B$) \u304c $O(A \\log B)$ \u6642\u9593\u3067\u30de\u30fc\u30b8\u3067\u304d\u308b\u5834\u5408\u3001\u5408\u8a08 $O(N \\log ^2 N)$ \u6642\u9593\u3067 $N$ \u500b\u306e\u8981\u7d20\u304c\u30de\u30fc\u30b8\u3067\u304d\u307e\u3059\u3002\u7af6\u30d7\u30ed\u3060\u3068 std::set \u3084 std::priority_queue \u306a\u3069\u3067\u3059\u3002 \u3053\u3053\u3067\u3001\u3082\u3057\u3082\u30de\u30fc\u30b8\u304c $O(A (\\log B - \\log A + 1))$ \u306b\u9ad8\u901f\u5316\u3067\u304d\u305f\u306a\u3089\u3070\u3001\u5408\u8a08\u306e\u8a08\u7b97\u91cf\u304c $O(N \\log N)$ \u306b\u306a\u308a\u307e\u3059\u3002\u8a3c\u660e\u306f\u666e\u901a\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30de\u30fc\u30b8\u3059\u308b\u4e00\u822c\u7684\u306a\u30c6\u30af\u3068\u307b\u307c\u540c\u3058\u3067\u3001\u3042\u308b\u8981\u7d20\u3092\u542b\u3080\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u30b5\u30a4\u30ba\u2026","width":"100%","provider_url":"https://hatena.blog","categories":[],"height":"190"}