{"author_name":"latte0119","blog_title":"\u3089\u3066\u306e\u7cbe\u9032\u65e5\u8a18","width":"100%","blog_url":"https://lattemalta.hatenablog.jp/","title":"codechef:PSUM","description":"\u554f\u984c\u3092\u89e3\u304f\u904e\u7a0b\u3067\u8003\u3048\u305f\u3053\u3068\u3092\u66f8\u304f\u3088 \u984c\u610f Contest Page | CodeChef N\u500b\u306e\u5b9d\u304c\u3042\u308b i\u756a\u76ee\u306e\u5b9d\u306e\u91cd\u3055\u306fci\u3067\u3001\u4fa1\u5024\u306fvi\u3067\u3042\u308b \u91cd\u3055S\u307e\u3067\u8a31\u5bb9\u3059\u308b\u30ca\u30c3\u30d7\u30b6\u30c3\u30af\u304c\u3042\u308b\u30ca\u30c3\u30d7\u30b6\u30c3\u30af\u306b\u53ce\u307e\u308b\u3088\u3046\u306a(\u91cd\u3055\u306e\u5408\u8a08\u304cS\u3092\u8d8a\u3048\u306a\u3044\u3088\u3046\u306b)\u5b9d\u306e\u9078\u3073\u65b9\u3059\u3079\u3066\u306b\u3064\u3044\u3066\u3001(\u4fa1\u5024\u306e\u5408\u8a08)^K\u3092\u8a08\u7b97\u3057\u3066\u3001\u305d\u306e\u7dcf\u548c\u3092\u6c42\u3081\u3066\u304f\u3060\u3055\u3044 mod 998244353N,S K ci vi \u8003\u3048\u65b9 \u524d\u304b\u3089dp\u3057\u3066\u3044\u304f\u30a4\u30e1\u30fc\u30b8\u3067\u8003\u3048\u308b\u4eca\u3001[1,i-1]\u306e\u4e2d\u304b\u3089\u3044\u304f\u3064\u304b\u9078\u3093\u3067\u3001\u305d\u306e\u4fa1\u5024\u306e\u7dcf\u548c\u304cv\u3067\u3042\u308b\u3068\u3059\u308b\u3002\u305d\u3057\u3066\u3001v^K\u304c\u6c42\u307e\u3063\u3066\u3044\u308b\u3068\u3059\u308b\u3053\u306e\u3068\u304d\u3001(v+vi)^K\u3092\u8a08\u7b97\u3067\u304d\u308b\u3068\u5b09\u3057\u3044(i\u756a\u76ee\u306e\u5b9d\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u2026","url":"https://lattemalta.hatenablog.jp/entry/2019/09/24/125655","image_url":null,"type":"rich","height":"190","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/latte0119/","provider_url":"https://hatena.blog","published":"2019-09-24 12:56:55","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flattemalta.hatenablog.jp%2Fentry%2F2019%2F09%2F24%2F125655\" title=\"codechef:PSUM - \u3089\u3066\u306e\u7cbe\u9032\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>","categories":[]}