<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
  </categories>
  <description>この問題とは関係ないですが Typing War は楽しいです。 trap.tokyotech.org 問題 No.391 CODING WAR - yukicoder 解法 包除原理で解きます。N 人が M 問のいずれかに担当する場合の数は M^N 通りです。ですが, これだと N 人が M-1 種類以下の問題にしか割り当てられていない場合を考慮してないです。なので, comb[M][M-1] * (M-1)^N を引いて, ... というイメージです。まとめると, 「N 人が i 問以下の問題に割り当てられる場合の数」というのを M-i が偶数なら +, 奇数なら - して足しこんでいけば…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F07%2F09%2F092050&quot; title=&quot;yukicoder No.391 CODING WAR - mayoko’s diary&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>2016-07-09 09:20:50</published>
  <title>yukicoder No.391 CODING WAR</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/07/09/092050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
