<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ishikado</author_name>
  <author_url>https://blog.hatena.ne.jp/ishikado/</author_url>
  <blog_title>ishikadoのアルゴリズム勉強録</blog_title>
  <blog_url>https://ishikado.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>それぞれの場所に最初からあるKの倍数の要素は基本その場で消化可能なので動かさない。 よってKであまりを取ったものを左右に動かしていく。 実装の際には、隣から輸入してきた値と自分の所の値は分けて管理しておく。実際の処理は以下のとおり。 左から順番に要素を１つずつみていく。 まず自分の所の値(self[i])と、輸入値(imp[i])の和を取る。 その値をKで割った値分をanswerに加算し、残りの値を記録しておく。うまくやればのこりの要素が全て元から自分のところにあったものにできる場合、その要素が今のところで消化できるなら、隣でも消化可能であり、隣へ移動させる。そうでない場合、足りない分を隣から…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fishikado.hatenadiary.org%2Fentry%2F20130207%2F1360231669&quot; title=&quot;SRM569div1Medium - ishikadoのアルゴリズム勉強録&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>2013-02-07 19:07:49</published>
  <title>SRM569div1Medium</title>
  <type>rich</type>
  <url>https://ishikado.hatenadiary.org/entry/20130207/1360231669</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
