<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>otaks</author_name>
  <author_url>https://blog.hatena.ne.jp/otaks/</author_url>
  <blog_title>ひよっこプログラマのプログラミング</blog_title>
  <blog_url>https://otaks.hatenadiary.org/</blog_url>
  <categories>
    <anon>合同練習会</anon>
  </categories>
  <description>問題文(ACM-ICPC Live Archive) 解法DFS(深さ優先探索)です。12個の数字の合計が3の倍数にならないときや直線4つの数字が3の倍数にならないときに枝刈りできます。数字が全部異なるため回転・対称のものは全部で12通りあるので、重複して数え上げて最後に12で割るとよいです。コード(C++) #include &lt;iostream&gt; using namespace std; int a[12], b[12], sum, line; bool memo[12]; int dfs(int pos = 0){ // 合計が 3 の倍数でないときは解は 0 if( sum % 3 !=…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fotaks.hatenadiary.org%2Fentry%2F20130611%2F1370959157&quot; title=&quot;問題D Hexagram - ひよっこプログラマのプログラミング&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>2013-06-11 22:59:17</published>
  <title>問題D Hexagram</title>
  <type>rich</type>
  <url>https://otaks.hatenadiary.org/entry/20130611/1370959157</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
