{"published":"2012-07-01 11:46:29","blog_title":"\u308c\u3069\u3053\u3060\u76ee\u6307\u3059\u3088\uff01\u3000(\uff1b`\u30fb\u03c9\u30fb\uff09","provider_url":"https://hatena.blog","height":"190","image_url":null,"blog_url":"https://phyllo-algo.hatenadiary.org/","width":"100%","author_url":"https://blog.hatena.ne.jp/phyllo_algo/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fphyllo-algo.hatenadiary.org%2Fentry%2F20120701%2F1341110789\" title=\"SRM546 Div1 250 - \u308c\u3069\u3053\u3060\u76ee\u6307\u3059\u3088\uff01\u3000(\uff1b`\u30fb\u03c9\u30fb\uff09\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u3068\u3077\u3053\u3060","\u904e\u53bb\u554f"],"author_name":"phyllo_algo","provider_name":"Hatena Blog","type":"rich","title":"SRM546 Div1 250","version":"1.0","url":"https://phyllo-algo.hatenadiary.org/entry/20120701/1341110789","description":"\u554f\u984c X\u304c\u975e\u8ca0\u306e\u6574\u6570\u3067\u3042\u308b\u3068\u304d\u3001\u4ee5\u4e0b\u306e\u6027\u8cea\u3092\u6301\u3064\u7121\u9650\u5217\u3092X\u306eKleofas tail\u3068\u3044\u3046\u3002 \u6570\u5217\u306e\u6700\u521d\u306fX \u5076\u6570\u306e\u6570\u5b57\u306e\u6b21\u306e\u8981\u7d20\u306f\u3001\u305d\u306e\u6570\u5b57\u306e\u534a\u5206\u306b\u3057\u305f\u3082\u306e \u5947\u6570\u306e\u6570\u5b57\u306e\u6b21\u306e\u8981\u7d20\u306f\u3001\u305d\u306e\u6570\u5b57\u304b\u30891\u5f15\u3044\u305f\u3082\u306e \u4f8b\u3048\u3070\u3001X=60\u306e\u5834\u5408\u306f\u300160,30,15,14,7,6,...\u3068\u306a\u308b\u3002 A\u304b\u3089B\u306e\u9593\u306e\u6570\u5b57\u3067\u30011\u5ea6\u4ee5\u4e0a\u6570\u5b57K\u304c\u51fa\u73fe\u3059\u308b\u3082\u306e\u306e\u500b\u6570\u3092\u7b54\u3048\u308b\u3002 \u8003\u3048\u65b9 \u9006\u306b1\u304b\u3089\u5076\u6570\u306e\u6642\u306f2\u500d\u3001\u5947\u6570\u306e\u6642\u306f2\u500d\u306b\u3057\u305f\u3082\u306e\u30681\u3092\u8db3\u3057\u305f\u3082\u306e\u3092\u66f8\u304d\u51fa\u3057\u3066\u3044\u3063\u3066\u307f\u308b\u3002 \u3059\u308b\u3068\u3001\u5404\u6570\u5b57\u306f1\u56de\u305a\u3064\u3057\u304b\u3067\u3066\u3053\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308b\u3002 \u3055\u3089\u306b2\u500d\u3057\u3066\u3044\u304f\u65b9\u306f2\u306e\u7d2f\u4e57\u3067\u5897\u3048\u3066\u3044\u304f\u3053\u3068\u304b\u3089\u3001O(log N)\u3067\u63a2\u7d22\u3057\u3066\u3044\u3063\u3066\u3044\u308b\u3002\u4e0e\u3048\u2026"}