<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>AOJ</anon>
  </categories>
  <description>解法 ２×２の正方形のグリッドを取り出したとき、その中央の格子点を生命体の分割の数が変わるイベント点とする。するとグリッドのパターンは分割の数が 1 増加する２つと、1 減少する２つの４パターンのみに絞られる。（以下のコードでは check() 関数にその４パターンが示されている）よって全てのイベント点を調べて、（反）時計回りに角度でソートしたイベント点を vector にもち、分割の増減をシュミレートすればよい。分割前の生命体は１つなので、cnt = 1 で初期化。また必ずどこかのいちで分割するので、分割後の最小値は mx = 2 になる。 #include &lt;bits/stdc++.h&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140413%2F1397337291&quot; title=&quot;AOJ2310 Rose Garden Witch - Logfiles&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>2014-04-13 06:14:51</published>
  <title>AOJ2310 Rose Garden Witch</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140413/1397337291</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
