<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thescript1210</author_name>
  <author_url>https://blog.hatena.ne.jp/thescript1210/</author_url>
  <blog_title>ひらめの日常</blog_title>
  <blog_url>https://hiramekun.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>atcoder</anon>
    <anon>数え上げ</anon>
    <anon>累積和</anon>
    <anon>解法メモ</anon>
    <anon>数学</anon>
  </categories>
  <description>問題はこちら atcoder.jp 1から9までの数字からのみなる、文字列 が与えられる。 次の条件を満たす整数の組 の総数を求めよ。 条件: の 文字目から 文字目までを10進法の整数としてみると、この整数は2019の倍数である。 制約: 考え方 はじめに を二重ループで全ての通り試して、その数が2019で割り切れるかを試す方法が真っ先に思い浮かぶが、計算量が となり今回は間に合わない。 桁を増やしながら何か数えることができれば、計算量が減りそうだと考える。そこで、桁を一つ増やすごとにどのように状態が変わるかに注目してみる。 簡便化のために、 の長さを 、 の右から 番目の数を とし、を次の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiramekun.hatenablog.com%2Fentry%2F2020%2F04%2F27%2F031032&quot; title=&quot;AtCoder: ABC164-D Multiple of 2019 (400) - ひらめの日常&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-27 03:10:32</published>
  <title>AtCoder: ABC164-D Multiple of 2019 (400)</title>
  <type>rich</type>
  <url>https://hiramekun.hatenablog.com/entry/2020/04/27/031032</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
