<?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>AtCoder</anon>
    <anon>AtCoder200点</anon>
    <anon>全探索</anon>
    <anon>茶色diff</anon>
    <anon>ARC-B</anon>
    <anon>ARC-like</anon>
    <anon>解空間:O(N^2)通りの選択肢</anon>
    <anon>for文</anon>
    <anon>多重for文</anon>
  </categories>
  <description>これと大体一緒かな。 むしろ合計枚数に関する制約がない分、やや難しくなっているかもしれない。 問題概要 を正の整数とする。 を満たすような 0 以上の整数 の組が何通りあるか求めよ。 制約 考えたこと 愚直に探索しようと思うと int res = 0; for (int r = 0; r &lt;= N/R; ++r) { for (int g = 0; g &lt;= N/G; ++g) { for (int b = 0; b &lt;= N/B; ++b) { if (R * r + G * g + B * b == N) ++res; } } } という風にやりたくなる。が、これでは最悪 の計算量がかかっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2019%2F05%2F11%2F235700&quot; title=&quot;diverta 2019 B - RGB Boxes (茶色, 200 点) - けんちょんの競プロ精進記録&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>2019-05-11 23:57:00</published>
  <title>diverta 2019 B - RGB Boxes (茶色, 200 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2019/05/11/235700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
