<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>harady_hara</author_name>
  <author_url>https://blog.hatena.ne.jp/harady_hara/</author_url>
  <blog_title>haradyの競プロ記</blog_title>
  <blog_url>https://harady.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>問題へのリンク全完25位。嬉しいね お気持ち なのででよさそう。 解説 なので各クエリごとに及びをで置き換えて良い。以下ではとする。 すると数列は以下のようになる。は適宜を取るを満たさないを数えてみる。が以上になった時点で繰り上がり(?)が発生し、でを満たさない。またとなるようなでも満たさない。このように、繰り上がる箇所ととなるが分かれば解ける。繰り上がりの回数は回である。なぜならより隣接二項間で2回以上繰り上がることはないため。0の個数は自明。また、なるでは繰り上がりは発生しない。よってで解ける。 実装 以下ソースコード(コード内では#define int long longしています) #…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharady.hatenadiary.com%2Fentry%2F2020%2F02%2F22%2F224017&quot; title=&quot;ABC 156 F - Modularness 解説 - haradyの競プロ記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/harady_hara/20200222/20200222223928.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-22 22:40:17</published>
  <title>ABC 156 F - Modularness 解説</title>
  <type>rich</type>
  <url>https://harady.hatenadiary.com/entry/2020/02/22/224017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
