<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>アルゴリズムと数学 演習問題集 064 - All Zero を解いた。 問題: https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_bc 数列の要素に対して +1 or -1 する操作をちょうど K 回してすべての要素を 0 にできるか。各要素を 0 にしたあと残った回数を +1, -1, ... の繰り返しで消費できれば良い。偶数回残れば良い。 数列の総和 S が S &gt; K の場合はすべての要素を 0 にはできない。 S &lt;= K の場合は K - S した残りを 2 で割った余りが 0 ならでき…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2022%2F03%2F02%2F214453&quot; title=&quot;アルゴリズムと数学 演習問題集 064, 065 を解いた - bouzuya.hatenablog.com&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>2022-03-02 21:44:53</published>
  <title>アルゴリズムと数学 演習問題集 064, 065 を解いた</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2022/03/02/214453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
