<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yoshichi</author_name>
  <author_url>https://blog.hatena.ne.jp/Yoshichi/</author_url>
  <blog_title>Yoshichiの日記</blog_title>
  <blog_url>https://yoshichi9.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題概要 C - オセロ N個の文字列(初期値0i0i+1...0i+N)に対して、範囲を指定すると対象の要素が1⇔0と反転する。 範囲指定をQ回行った時、Nの文字列を答えよ。 解法 範囲指定の積み重ねの結果で表裏が決まるため、Imos法で解ける。 提出コード n, q = map(int, input().split()) a = [0 for i in range(n + 2)] for i in range(q): x, y = map(int, input().split()) a[x] += 1 a[y + 1] -= 1 for i in range(n + 1): if i ==…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshichi9.hatenablog.com%2Fentry%2F2019%2F05%2F04%2F023639&quot; title=&quot; ABC 035C - オセロ - Yoshichiの日記&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-05-04 02:36:39</published>
  <title> ABC 035C - オセロ</title>
  <type>rich</type>
  <url>https://yoshichi9.hatenablog.com/entry/2019/05/04/023639</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
