{"provider_name":"Hatena Blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyambe2002.hatenablog.com%2Fentry%2F2017%2F11%2F22%2F045332\" title=\"Codechef November Challenge 2017 \u53c2\u52a0\u65e5\u8a18 - yambe2002\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2017-11-22 04:53:32","author_name":"yambe2002","categories":[],"title":"Codechef November Challenge 2017 \u53c2\u52a0\u65e5\u8a18","provider_url":"https://hatena.blog","url":"https://yambe2002.hatenablog.com/entry/2017/11/22/045332","description":"143\u4f4d/8136\u4eba\u3067\u76ee\u6a19\u306e2\u6841\u9806\u4f4d\u306f\u9054\u6210\u3067\u304d\u305a\u3002\u56de\u7b54\u4eba\u6570\u306e\u591a\u3044CSUBQ\u3067\u90e8\u5206\u70b9\u3060\u3063\u305f\u306e\u304c\u75db\u304b\u3063\u305f\u3002\u4ee5\u4e0b\u3001\u6613\u554f\u306f\u7701\u7565\u3059\u308b\u3002 Periodic Palindrome Construction \u9577\u3055N\u306e\u6587\u5b57\u5217S\u306b\u3064\u3044\u3066\u3001N\u304c\u6574\u6570P\u306e\u500d\u6570\u3067\u3042\u308a\u3001\u304b\u3064S\u3092P\u3054\u3068\u306b\u5206\u5272\u3057\u305f\u3068\u304d\u3059\u3079\u3066\u306eP[i]\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u3082\u306e\u3092\u3001\u5468\u671f\u304cP\u3067\u3042\u308b\u3001\u3068\u5b9a\u7fa9\u3059\u308b\u3002N\u3068P\u304c\u4e0e\u3048\u3089\u308c\u305f\u3068\u304d\u3001\u6587\u5b57a\u3068b\u306e\u307f\u3092\u4f7f\u3063\u3066\u3001\u5468\u671f\u304cP\u304b\u3064\u5168\u4f53\u3067\u56de\u6587\u306b\u306a\u308b\u3001\u9577\u3055N\u306e\u6587\u5b57\u5217\u3092\u4f5c\u308c\u3002\u305f\u3060\u3057\u3001\u6587\u5b57\u5217\u306b\u306fa\u3068b\u306e\u4e21\u65b9\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002 1 UnionFind\u3092\u4f7f\u3046\u3002\u6700\u7d42\u7684\u306a\u6587\u5b57\u5217\u3092S\u3068\u3059\u308b\u3068\u3001\u5168\u4f53\u3067\u56de\u6587\u306a\u306e\u3067\u3001 S[0] = S[len-1] S[\u2026","version":"1.0","author_url":"https://blog.hatena.ne.jp/yambe2002/","blog_title":"yambe2002\u2019s diary","width":"100%","blog_url":"https://yambe2002.hatenablog.com/","type":"rich","image_url":null}