{"provider_url":"https://hatena.blog","height":"190","title":"CGL_6/A: \u7dda\u5206\u4ea4\u5dee","blog_title":"tobias\u306e\u65e5\u8a18","published":"2015-02-17 17:16:37","author_url":"https://blog.hatena.ne.jp/TobiasGSmollett/","image_url":null,"blog_url":"https://tobiasgsmollett.hatenadiary.org/","categories":["AOJ","\u5e7e\u4f55","\u30c7\u30fc\u30bf\u69cb\u9020"],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftobiasgsmollett.hatenadiary.org%2Fentry%2F20150217%2F1424160997\" title=\"CGL_6/A: \u7dda\u5206\u4ea4\u5dee - tobias\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://tobiasgsmollett.hatenadiary.org/entry/20150217/1424160997","width":"100%","author_name":"TobiasGSmollett","type":"rich","provider_name":"Hatena Blog","description":"\u554f\u984c\u6587 http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_6_A \u66f8\u7c4d\u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b3\u30f3\u30c6\u30b9\u30c8\u653b\u7565\u306e\u305f\u3081\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u30c7\u30fc\u30bf\u69cb\u9020\u300d\u3067\u7d39\u4ecb\u3055\u308c\u3044\u308b\u304c\u3001\u30bb\u30b0\u6728\u3092\u4f7f\u3063\u3066\u52b9\u7387\u3088\u304f\u89e3\u3051\u308b\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\u5b9f\u88c5\u3002 x\u5ea7\u6a19\u3092\u5ea7\u6a19\u5727\u7e2e\u3059\u308b\u3068\u5e73\u9762\u8d70\u67fb\u3067\u4f7f\u3063\u3066\u3044\u308b\u4e8c\u5206\u63a2\u7d22\u6728\u306e\u90e8\u5206\u306b\u30bb\u30b0\u6728\u3092\u4f7f\u3048\u3066O(n log n)\u306b\u306a\u308b\u2026\u2026\u3068\u3044\u3046\u3053\u3068\u3060\u3068\u601d\u3046\u3002 #include<iostream> #include<vector> #include<algorithm> #include<map> #define all(c) (c).begin(),(\u2026"}