<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>semiexp</author_name>
  <author_url>https://blog.hatena.ne.jp/semiexp/</author_url>
  <blog_title>Algorithmer’s note</blog_title>
  <blog_url>https://semiexp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Algorithm</anon>
    <anon>TopCoder</anon>
  </categories>
  <description>問題 N*Nのボードがあり、色の異なるチェッカーがある。色iのチェッカーはcheckers[i]個ある。回転させて重なる配置を同じ配置と考えるとき、何通りの異なる配置があるか。 解法 90°回転で重なるものがA通り、180°回転で重なる(かつ90°回転で重ならないもの)がB通り、180°回転でも重ならないものがC通りあるとき、A+B/2+C/4通りが答えである。 C(a,b)を求めるのが必要でかつけっこう大変であるが、1234567891が素数のため、予め1〜100000について逆元を求めておけばC(a,b)はすぐに求まる。 回転によって重なるものの数は、どのマスの状態が一致しないといけないか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsemiexp.hatenadiary.org%2Fentry%2F20110925%2F1316937603&quot; title=&quot;TopCoder SRM423 Div1Hard - Algorithmer’s note&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>2011-09-25 17:00:03</published>
  <title>TopCoder SRM423 Div1Hard</title>
  <type>rich</type>
  <url>https://semiexp.hatenadiary.org/entry/20110925/1316937603</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
