<?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/abc146/tasks/abc146_e 解説 https://atcoder.jp/contests/abc146/submissions/8635001 まずは常套手段として、右端を全探索して条件を満たす左端を探すことにしよう。 連続する和について考えるので、累積和を考えれば良さそう。 和をKで割った余りについて考えるので、累積和を考える場合でもmodKでカウントしておけばいい。 累積和基準で考えると、区間の和はsm[R]-sm[L]と考えることができる。 modKで考えると、sm[R]-sm[L]=要素の数となればいい。 要素の数…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F11%2F24%2F231220&quot; title=&quot;Rem of Sum is Num [AtCoder Beginner Contest 146 E] - はまやんはまやんはまやん&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-11-24 23:12:20</published>
  <title>Rem of Sum is Num [AtCoder Beginner Contest 146 E]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/11/24/231220</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
