<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>ABCのE問題</anon>
    <anon>二重シグマ</anon>
    <anon>二項係数mod</anon>
  </categories>
  <description>ABC471 E - Sum of Square of Sum 不参加の回で出題された上記の問題を通して二重シグマ問題への手札を増やすことを目的として書く。なお、\(P = 998244353\)とする。 ＜問題概要＞ 2つの整数値\(N,K\)と\(N\)個の整数値\(A_1, A_2, \dots , A_N\)が与えられる。\(N\)個の整数値から\(K\)個を選び出す組合せは全部で\( \binom{N}{K} \)通りだけ存在するが、それら全てに対して「選び出された\(K\)個の整数値の総和を2乗した値」を計算した結果の総和を\( \mod P\)のもとで求めよ。 ＜制約＞ \(1 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2026%2F08%2F19%2F002930&quot; title=&quot;ABC471 E - Sum of Square of Sum - JunKobayashi&amp;#39;s Diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-08-19 00:29:30</published>
  <title>ABC471 E - Sum of Square of Sum</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2026/08/19/002930</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
