<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yosupo</author_name>
  <author_url>https://blog.hatena.ne.jp/yosupo/</author_url>
  <blog_title>よすぽの日記</blog_title>
  <blog_url>https://yosupo.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>概要 直線n本から成るグラフが与えられる、これと直線y=kとの交点の数の最大値を求めよ(kは任意の実数) サンプル {0, 1, 0} 2 {1, 0, 2, 0} 3 {0, 1, 0, 1} 3 参考にならない参考画像 解法 僕は座標圧縮で、頂点と頂点の間の数を通る線の数を数えましたが、どうやら 座標をy軸方向に2倍して頂点とその上下の点を通る本数を数えるという方法もあるようです class PiecewiseLinearFunction { public: int maximumSolutions(vector&lt;int&gt; Y) { int count[100] = {}; //辺と辺の間…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2013%2F07%2F28%2F235507&quot; title=&quot;TopCoder SRM586 Div1 Easy PiecewiseLinearFunction - よすぽの日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/y/yosupo/20130728/20130728233934.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-07-28 23:55:07</published>
  <title>TopCoder SRM586 Div1 Easy PiecewiseLinearFunction</title>
  <type>rich</type>
  <url>https://yosupo.hatenablog.com/entry/2013/07/28/235507</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
