<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anta1</author_name>
  <author_url>https://blog.hatena.ne.jp/anta1/</author_url>
  <blog_title>antaの競技プログラミング練習日記</blog_title>
  <blog_url>https://anta1.hatenadiary.org/</blog_url>
  <categories>
    <anon>SRM</anon>
    <anon>幾何</anon>
    <anon>座標変換</anon>
  </categories>
  <description>問題 Editorial 問題 HexMapがあって、座標が2つ与えられる。 その点と点を結ぶ線分と交差する6角形の数を答えよ。 ただしエッジの上にオーバーラップする場合や、角の1点だけで触れる場合はカウントしない 10000 解答 Editorialを読んだ。 まず、座標を斜めに変換する(Editorialの図を参照)。こうすることによって座標が整数で扱えるようになる。 この変換では2点を結ぶ線分の交差状況が保存されることに注意。 あとは適当に当たりそうな六角形を列挙し、エッジと交差判定をしてやればいい コメント 座標の変換はいいね！わりと感動した。 座標を変換する時は、保存させたい事を考え…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanta1.hatenadiary.org%2Fentry%2F20121213%2F1355334312&quot; title=&quot;SRM 206 DIV1 Hard HexagonIntersections - antaの競技プログラミング練習日記&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>2012-12-13 02:45:12</published>
  <title>SRM 206 DIV1 Hard HexagonIntersections</title>
  <type>rich</type>
  <url>https://anta1.hatenadiary.org/entry/20121213/1355334312</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
