<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tic40</author_name>
  <author_url>https://blog.hatena.ne.jp/tic40/</author_url>
  <blog_title>Do Something</blog_title>
  <blog_url>https://tic40.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>DP</anon>
  </categories>
  <description>問題 C - Ubiquity 公式解説にある通り、包除原理を理解していれば数行で解ける問題。 包除原理にたどり着けず納得が行かなかったので公式解説動画で言及されていたDP解法で解いてみた。 DP解法 DPは [N][0を含んでいるかどうか][9を含んでいるかどうか] で取る。 4重ループで数え上げていき、dp[n][1][1] が最終的に長さnで0,9を含む数列の数となる。 #include &lt;bits/stdc++.h&gt; using namespace std; #define REP(i, n) for(int i=0;i&lt;n;i++) using ll = long long; con…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftic40.hatenablog.com%2Fentry%2F2020%2F09%2F14%2F203436&quot; title=&quot;atcoder ABC 178 C - Ubiquity - Do Something&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>2020-09-14 20:34:36</published>
  <title>atcoder ABC 178 C - Ubiquity</title>
  <type>rich</type>
  <url>https://tic40.hatenablog.com/entry/2020/09/14/203436</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
