<?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>TopCoder</anon>
    <anon>SRM</anon>
  </categories>
  <description>解法 ポイントは以下 はじめの状態で同じ配置の行は何度列をフリップしても同じ配置の行のまま 同じ列を2回フリップすると Kが2回分消費できる よって、各行について '0' の数をカウントし '0' の数が K &quot;以下&quot; で、'0' の数と K との偶奇が一致すればその行が lit であるときが答えとなる。後はその行と同じ行の数を全体の vector からカウントし、最大の数を求めれば良い。反省・感想 自分では2^50のdfsしか思いつかず、解けなかった。editorial を見て納得した。2回同じ列をフリップすれば元に戻るのは容易に思いつくれど、わざと2回フリップさせれば、「K回ちょうど」から…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140407%2F1396839659&quot; title=&quot;SRM432 Div2Med LampsGrid - 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-07 12:00:59</published>
  <title>SRM432 Div2Med LampsGrid</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140407/1396839659</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
