<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rokugats</author_name>
  <author_url>https://blog.hatena.ne.jp/rokugats/</author_url>
  <blog_title>ICPC log</blog_title>
  <blog_url>https://rokugats-pc.hateblo.jp/</blog_url>
  <categories>
    <anon>POJ</anon>
  </categories>
  <description>入力列をx座標(x座標が同じ場合はy座標)で降順にソートしておく。 ソートされた列のy座標を先頭から見ていき, これまで見た中で最大の値なら解に1加算する。 #include &lt;cstdio&gt; #include &lt;algorithm&gt; #include &lt;functional&gt; using namespace std; typedef pair&lt;int, int&gt; P; int main() { int N; while (scanf(&quot;%d&quot;, &amp;N) != EOF &amp;&amp; N) { P ps[50000]; for (int i = 0; i &lt; N; i++) scanf(&quot;%d %d&quot;,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frokugats-pc.hateblo.jp%2Fentry%2F2014%2F09%2F21%2F183502&quot; title=&quot;POJ PKU 1828 Monkeys&amp;#39; Pride - ICPC log&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>2014-09-21 18:35:02</published>
  <title>POJ PKU 1828 Monkeys' Pride</title>
  <type>rich</type>
  <url>https://rokugats-pc.hateblo.jp/entry/2014/09/21/183502</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
