<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>条件を満たす3頂点を答えよ x,y座標が[0,3000]に収まる できる三角形の外周がperimeterであり、面積がarea 解法 どのような三角形も回転や平行移動をすれば、(0,0)を通るようにできる。 なので、1つの頂点は(0,0)で他の2頂点を考えよう。 他の2頂点は外周が整数であるため、(0,0)からの長さも整数になる必要がある。 [0,3000]の範囲で(0,0)からの長さが整数となる点はそんなに多くない（10^4くらい）。 なので、これを全部探し、そのうち２つを、他の2頂点として採用できるか考える。一辺がx軸、y軸に平行になると仮定するのは以下で落ちる。 area=252, pe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F10%2F01%2F035343&quot; title=&quot;FindThePerfectTriangle [TopCoder SRM 738 Div1 Easy] - はまやんはまやんはまやん&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>2018-10-01 03:53:43</published>
  <title>FindThePerfectTriangle [TopCoder SRM 738 Div1 Easy]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2018/10/01/035343</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
