<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
    <anon>codeforces</anon>
    <anon>累積和</anon>
  </categories>
  <description>Quiz https://codeforces.com/contest/1132/problem/C Submit https://codeforces.com/contest/1132/submission/50862056 解法 除去する2人を全パターン試すとO(N3)となってしまう 除去する1人を固定する 残りq-1人で塗る。各箇所が何回塗られたかをカウントしておく その塗りのうち、塗りが1の箇所のみに注目 除去する2人目を決めたとき、範囲内＆塗り1の箇所のみペンキがはがれて0になる 塗り1だけを見た累積和を持っておけばいい 全体の計算量 O(N2) 感想 コンテスト中に解けず 2000…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2Fcf_1132_C&quot; title=&quot;C. Painting the Fence - perogram&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>2019-03-06 03:42:08</published>
  <title>C. Painting the Fence</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/cf_1132_C</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
