{"height":"190","title":"AtCoder Beginner Contest 346, D : Gomamayo Sequence","url":"https://torus711.hatenablog.com/entry/2024/04/03/212128","categories":["AtCoder","\u7d2f\u7a4d\u548c"],"type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/torus711/","author_name":"torus711","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorus711.hatenablog.com%2Fentry%2F2024%2F04%2F03%2F212128\" title=\"AtCoder Beginner Contest 346, D : Gomamayo Sequence - torus711 \u306e\u30a2\u30ec\" 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,"blog_title":"torus711 \u306e\u30a2\u30ec","description":"\u554f\u984c\u6587 https://atcoder.jp/contests/abc346/tasks/abc346_d \u554f\u984c\u6982\u8981 $n$ \u9805\u304b\u3089\u306a\u308b\u30d0\u30a4\u30ca\u30ea\u5217 $S = \\langle S_1, S_2, \\dots, S_n \\rangle$ ($S_i \\in \\{ 0, 1 \\}$) \u304c\u4e0e\u3048\u3089\u308c\u308b\uff0e$S$ \u306b\u5bfe\u3057\uff0c\u6b21\u306e\u64cd\u4f5c\u3092\u4efb\u610f\u56de\u9069\u7528\u3067\u304d\u308b\uff0e \u30b3\u30b9\u30c8 $C_i$ \u304b\u3051\u3066 $S_i$ \u3092\u53cd\u8ee2\u3059\u308b\uff0e $S$ \u306e\u6dfb\u5b57 $i$ ($1 \\leq i \u5236\u7d04 $2 \\leq n \\leq 2 \\times 10^5$ $1 \\leq C_i \\leq 10^9$","published":"2024-04-03 21:21:28","blog_url":"https://torus711.hatenablog.com/","width":"100%","provider_url":"https://hatena.blog"}