<?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>AtCoder300点</anon>
    <anon>ABC-C</anon>
    <anon>茶色diff</anon>
    <anon>NoviSteps5Q</anon>
    <anon>数え上げ問題</anon>
    <anon>易しい数え上げ問題</anon>
    <anon>算数と数学</anon>
    <anon>易しい算数と数学</anon>
    <anon>順列の数え上げ</anon>
    <anon>制約条件:隣接する要素について</anon>
    <anon>場合分け</anon>
  </categories>
  <description>数学 IA でもありがちな問題！ 問題へのリンク 問題概要 匹の犬 と、 引の猿 を一列に並べる。 犬同士・猿同士がそれぞれ隣り合わないように並べる方法の数を 1000000007 で割った余りを求めよ。 制約 考えたこと 実は、 や の場合は、条件を満たすように並べることができない。 のとき（犬が 1 匹多いとき） この場合は、下図のように、犬を両端において、犬と猿を交互に並べるしかない。 犬自体の並べ方は 通り、猿自体の並べ方は 通りあるから、全部で 通り である。 のとき（猿が 1 匹多いとき） この場合も同様に、猿を両端に並べて、猿と犬を交互に並べるしかない。犬自体の並べ方は 通り、猿…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2025%2F01%2F01%2F172204&quot; title=&quot;AtCoder ABC 065 C - Reconciled? (5Q, 茶色, 300 点) - けんちょんの競プロ精進記録&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-ak.f.st-hatena.com/images/fotolife/d/drken1215/20250101/20250101172013.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-01 17:22:04</published>
  <title>AtCoder ABC 065 C - Reconciled? (5Q, 茶色, 300 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2025/01/01/172204</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
