{"blog_url":"https://tutuz.hateblo.jp/","url":"https://tutuz.hateblo.jp/entry/2018/09/18/222351","blog_title":"\u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2","provider_url":"https://hatena.blog","type":"rich","height":"190","published":"2018-09-18 22:23:51","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F09%2F18%2F222351\" title=\"Codeforces Round #510 (Div. 2)\uff1aPetya and Array - \u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_name":"Hatena Blog","description":"\u554f\u984c http://codeforces.com/contest/1042/problem/D \u6570\u5217 a_n \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002[l, r] \u306e\u533a\u9593\u548c\u304c t \u672a\u6e80\u306b\u306a\u308b\u533a\u9593\u306e\u6570\u3092\u6c42\u3081\u3088\u3002 \u8003\u3048\u65b9 \u307e\u305a\u3001\u6570\u5217\u306e\u9023\u7d9a\u3059\u308b\u533a\u9593\u548c\u306f\u7d2f\u7a4d\u548c\u306e 2 \u70b9\u3067\u6c42\u3081\u3089\u308c\u307e\u3059\u3002 \u4eca\u3001\u6c42\u3081\u308b\u3079\u304d\u533a\u9593\u306f\u3042\u308b 2 \u70b9 i, j (i < j) \u306b\u3064\u3044\u3066 a_j - a_i < t \u3068\u306a\u308b\u3088\u3046\u306a i, j \u3067\u3059\u3002j \u3092\u56fa\u5b9a\u3059\u308b\u3068\u6c42\u3081\u308b i \u306f a_j - t < a_i \u3092\u6e80\u305f\u3059 i \u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a i \u306f BIT \u3067\u8ee2\u5012\u6570\u3092\u6c42\u3081\u308b\u8981\u9818\u3068\u540c\u3058\u8003\u3048\u65b9\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u300c\u6570\u5217\u306e\u8981\u7d20\u3092 BIT \u306e index \u3068\u898b\u7acb\u2026","width":"100%","title":"Codeforces Round #510 (Div. 2)\uff1aPetya and Array","author_url":"https://blog.hatena.ne.jp/d_tutuz/","author_name":"d_tutuz","categories":[],"version":"1.0"}