{"blog_title":"hitoare\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/hitoare/","description":"\u554f\u984c\u30ea\u30f3\u30af atcoder.jp \u554f\u984c\u6982\u8981 \\(N\\)\u8981\u7d20\u306e\u6570\u5217\\(c_1,...,c_N\\)\u304c\u4e0e\u3048\u3089\u308c\u308b\u3002 \u4ee5\u4e0b\u306e\\(Q\\)\u500b\u306e\u30af\u30a8\u30ea\u3092\u51e6\u7406\u305b\u3088\u3002 \u30af\u30a8\u30ea\\(i\\)\uff1a\\(c_{l_i}\\)\u304b\u3089\\(c_{r_i}\\)\u307e\u3067\u306e\u8981\u7d20\u306e\u7a2e\u985e\u6570\u3092\u7b54\u3048\u308b\u3002 \u89e3\u6cd5 \u8981\u7d20\u6570\u306f\\(r_i - l_i + 1\\)\u306a\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u540c\u3058\u8981\u7d20\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\u5206\u3060\u3051\u5f15\u304f\u3053\u3068\u3092\u8003\u3048\u308b\u3002 \\(c_j=c_k\\)\u304b\u3064\\(j\\)\u3068\\(k\\)\u306e\u9593\u306b\u540c\u3058\u5024\u306e\u8981\u7d20\u304c\u5b58\u5728\u3057\u306a\u3044\u3088\u3046\u306a\u5168\u3066\u306e\u30da\u30a2\u306b\u5bfe\u3057\u3001 \u533a\u9593\\([l_i,r_i]\\)\u304c\\([j,k]\\)\u3092\u5b8c\u5168\u306b\u542b\u3093\u3067\u3044\u308b\u3088\u3046\u306a\u30da\u30a2\u306e\u500b\u6570\u3092\u5f15\u304f\u3001\u3068\u3044\u3046\u65b9\u91dd\u3067\u8003\u3048\u308b\u3002 \u4e0a\u306e\u3088\u3046\u306a\\( (j,k\u2026","published":"2020-08-02 22:40:34","author_name":"hitoare","type":"rich","version":"1.0","width":"100%","blog_url":"https://hitoare.hatenablog.com/","provider_url":"https://hatena.blog","url":"https://hitoare.hatenablog.com/entry/2020/08/02/224034","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhitoare.hatenablog.com%2Fentry%2F2020%2F08%2F02%2F224034\" title=\"F - Range Set Query(AtCoder Beginner Contest 174) - hitoare\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>","title":"F - Range Set Query(AtCoder Beginner Contest 174)","height":"190","image_url":null,"provider_name":"Hatena Blog","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","AtCoder","ABC"]}