{"width":"100%","blog_url":"https://junkobayashi.hatenablog.com/","provider_name":"Hatena Blog","url":"https://junkobayashi.hatenablog.com/entry/2025/01/30/103704","author_url":"https://blog.hatena.ne.jp/JunKobayashi/","published":"2025-01-30 10:37:04","categories":["ABC\u306eE\u554f\u984c","ABC\u672c\u756a\u3067\u6557\u5317\u3057\u305f\u554f\u984c","\u4e8c\u91cd\u30b7\u30b0\u30de","\u30bb\u30b0\u30e1\u30f3\u30c8\u6728","\u7d2f\u7a4d\u548c"],"title":"ABC378 E - Mod Sigma Problem","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2025%2F01%2F30%2F103704\" title=\"ABC378 E - Mod Sigma Problem - JunKobayashi&#39;s Diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","author_name":"JunKobayashi","version":"1.0","image_url":null,"blog_title":"JunKobayashi's Diary","type":"rich","description":"\u3044\u3044\u52a0\u6e1b\u4e8c\u91cd\u30b7\u30b0\u30de\u306b\u8010\u6027\u3092\u6301\u3061\u305f\u3044\u30fb\u30fb\u30fb\u3002\u516c\u5f0f\u89e3\u8aac\u3092\u8aad\u3093\u3067\u3082\u3059\u3050\u306b\u306f\u98f2\u307f\u8fbc\u3081\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u7406\u89e3\u3067\u304d\u305a\u8e93\u3044\u305f\u70b9\u306e\u884c\u9593\u3092\u88dc\u3046\u5f62\u3068\u3059\u308b\u3002 \u2193\u554f\u984c\u306e\u30da\u30fc\u30b8\u30fb\u6982\u8981\u2193 ABC378 E - Mod Sigma Problem \u9577\u3055\\(N\\)\u306e\u975e\u8ca0\u6574\u6570\u5217\\(A=(A_1,A_2,\\dots,A_N)\\)\u3068\u6b63\u6574\u6570\\(M\\)\u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u6b21\u306e\u5024\u3092\u6c42\u3081\u3088\u3002 \\begin{align} \\sum_{1 \\leq l \\leq r \\leq N} \\left( \\left(\\sum_{l \\leq i \\leq r} A_i\\right) \\mathbin{\\mathrm{mod}} M \\right) \\tag{1\u2026"}