<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a_kawashiro</author_name>
  <author_url>https://blog.hatena.ne.jp/a_kawashiro/</author_url>
  <blog_title>a_kawashiroのブログ</blog_title>
  <blog_url>https://a-kawashiro.hatenablog.com/</blog_url>
  <categories>
    <anon>topcoder</anon>
  </categories>
  <description>難しかった。 まずある数列の （偶数番目の要素の和）＝（奇数番目の要素の和）である集合をP （前半の和）＝（後半の和）である集合をQとするDP[i][j]をi個の要素を持ち和がjである数列の数だとする(並び替えは違うものとする) するとn(P)＋n(Q)はDPで求められる。（＊１）次にn(P∩Q)を求める 前半K個の和をhalf、その中で偶数番目のものの和をquarterとする （＊２）それでn(P)+n(Q)-n(P∩Q)を返す #include &lt;cstring&gt; #include &lt;string&gt; #define MOD 999983 typedef long long LL; usin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110328%2F1301309868&quot; title=&quot;SRM382 div2 hard - a_kawashiroのブログ&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>2011-03-28 19:57:48</published>
  <title>SRM382 div2 hard</title>
  <type>rich</type>
  <url>https://a-kawashiro.hatenablog.com/entry/20110328/1301309868</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
