<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/abc129/tasks/abc129_b 解説 https://atcoder.jp/contests/abc129/submissions/5859689グループの分け方はN-1通りあるので、それを全探索して、差の絶対値の最小値を求める。 2つのグループに分けたあと、それぞれの重さの和を求めるには累積和を使うと最適。 しかし、使わなくても計算量的には問題ない。 一応累積和解法を紹介しておく。 W[i] := 番号iの重りの重さ であるが、W[i] += W[i - 1]という計算を繰り返すことで、 W[i] := 番号i以下の重りの重…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F06%2F10%2F003148&quot; title=&quot;Balance [AtCoder Beginner Contest 129 B] - はまやんはまやんはまやん&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>2019-06-10 00:31:48</published>
  <title>Balance [AtCoder Beginner Contest 129 B]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/06/10/003148</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
