<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Area1</author_name>
  <author_url>https://blog.hatena.ne.jp/Area1/</author_url>
  <blog_title>Area1のif(memo[i][j])</blog_title>
  <blog_url>https://area.hateblo.jp/</blog_url>
  <categories>
    <anon>SRM</anon>
    <anon>文字列処理</anon>
    <anon>幾何</anon>
  </categories>
  <description>問題 折れ線グラフが以下の形式で1つ以上与えられる。互いに交差している折れ線グラフを1つの集合と数えると、いくつの集合になるか。1つの折れ線は1つ以上の線分からなり、点同士は'-'で区切られ、点は','で区切られる2つの非負整数で表現される。' 'で区切られているものは別の折れ線に属する。 やりかた 与えられる書式を処理しやすいように整形するのが面倒。折れ線グラフもすべて1つの線分に分解してしまったのち、各線分同士の交差をすべて調べてUnion-Findしていくつのグループになるか調べるのが手っ取り早い。以下きたないソース。 //Union-Findのソースは略 struct seg{ int…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2015%2F11%2F23%2F235109&quot; title=&quot;SRM 368 Div1 Medium PolylineUnion - Area1のif(memo[i][j])&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>2015-11-23 23:51:09</published>
  <title>SRM 368 Div1 Medium PolylineUnion</title>
  <type>rich</type>
  <url>https://area.hateblo.jp/entry/2015/11/23/235109</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
