<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>floor_sum</anon>
    <anon>各桁がある値を持つ条件を大小関係に関する条件に言い換える</anon>
    <anon>スタートを0としてよい</anon>
    <anon>各桁ごとに見る</anon>
    <anon>入力が定数個</anon>
    <anon>マルチテストケース問題</anon>
    <anon>単純化：l以上r以下のものの個数を引き算で求める</anon>
  </categories>
  <description>floor sum の練習！ 問題へのリンク 問題概要 以上 以下の の倍数をすべて十進表記で 1 回ずつ書き出した時、数字 が書かれる回数を求めよ。 (テストケースが 個与えられる) 制約 考えたこと 各桁ごとに考える。整数 の右から 桁めが である条件は を で割ったあまりが 以上 未満である と言い換えられる。さらに、次のように言い換えられる。 の 桁めが であるとき、 そうでないとき よって、 以上 以下の の倍数の各桁について、 の値の総和を求めればよい。 計算量は となる。 コード #include &lt;bits/stdc++.h&gt; using namespace std; // s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2022%2F12%2F26%2F133510&quot; title=&quot;yukicoder No.2032 Let&amp;#39;s Write Multiples!! - けんちょんの競プロ精進記録&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.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-12-26 13:35:10</published>
  <title>yukicoder No.2032 Let's Write Multiples!!</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2022/12/26/133510</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
