<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>三角形</anon>
    <anon>三角形の成立条件</anon>
  </categories>
  <description>バチャやりました！ vjudge.net L 問題ですが、一番易しい問題です。 問題へのリンク 問題概要 N 個の値 a_1, a_2, ..., a_N が与えられる。 このうちの 3 つをうまく選ぶことで、3 辺の長さがそれらになるような三角形を作ることができるかどうか判定せよ。 制約 3 &lt;= N &lt;= 20000 解法 三角形の成立条件は a &lt; b &lt; c に対して、c &lt; a+b で与えられる。 素朴に考えると O(N3) の探索をすることになるが、O(NlogN) でできる。まずはソートしておく。そして c を決めうちする。 c の値を仮定すると、a &lt; b &lt; c なる a, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2018%2F06%2F09%2F152500&quot; title=&quot;2016 Benelux Algorithm Programming Contest L - Sticky Situation - けんちょんの競プロ精進記録&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-06-09 15:25:00</published>
  <title>2016 Benelux Algorithm Programming Contest L - Sticky Situation</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2018/06/09/152500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
