<?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>AtCoder400点</anon>
    <anon>ARC-B</anon>
    <anon>半分全列挙</anon>
    <anon>バケット</anon>
    <anon>全探索</anon>
    <anon>集計処理</anon>
    <anon>解空間:O(N^2)通りの選択肢</anon>
    <anon>数え上げ問題</anon>
    <anon>茶色diff</anon>
  </categories>
  <description>半分全列挙した！ 問題へのリンク 問題概要 正の整数 と整数 が与えられる。以下の条件を満たす正の整数 の組の個数を求めよ。 制約 考えたこと 愚直な方法としては、次のように 4 重ループをする解法が考えられるかもしれない。しかしこれでは の計算量を要する。 long long res = 0; for (int a = 1; a &lt;= N; ++a) { for (int b = 1; b &lt;= N; ++b) { for (int c = 1; c &lt;= N; ++c) { for (int d = 1; d &lt;= N; ++d) { if (a + b - c - d == K) ++r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F10%2F31%2F231300&quot; title=&quot;AtCoder ARC 107 B - Quadruple (茶色, 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.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>2020-10-31 23:13:00</published>
  <title>AtCoder ARC 107 B - Quadruple (茶色, 400 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/10/31/231300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
