{"categories":[],"published":"2013-06-02 10:12:10","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fekaing.hatenablog.com%2Fentry%2F2013%2F06%2F02%2F101210\" title=\"Codeforces #183 Div2 D &quot;Rectangle Puzzle II&quot; - WARush\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/Ekaing/","url":"https://ekaing.hatenablog.com/entry/2013/06/02/101210","description":"\u554f\u984c http://codeforces.com/contest/304/problem/D \u8a33 \u3042\u306a\u305f\u306b\u306f\u56db\u89d2\u5f62\u306e\u30b0\u30ea\u30c3\u30c9\u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306e\u30b5\u30a4\u30ba\u306fn * m\u3067\u3042\u308b\u3002\u30b0\u30ea\u30c3\u30c9\u306b\u304a\u3051\u308b\u4f4d\u7f6e\u3092\u5ea7\u6a19\u7cfb\u3067\u8868\u3059\u4e8b\u306b\u3059\u308b\u3002\u30b0\u30ea\u30c3\u30c9\u306e\u5404\u30dd\u30a4\u30f3\u30c8\u306f(x, y)\u3068\u3044\u3046\u6574\u6570\u306e\u30da\u30a2\u306e\u5ea7\u6a19\u3068\u306a\u308b\u3002\u3042\u306a\u305f\u306e\u8ab2\u984c\u306f\u30b0\u30ea\u30c3\u30c9\u4e0a\u306b\u30dd\u30a4\u30f3\u30c8(x, y)\u3092\u542b\u307f\u3001\u9577\u3055\u306e\u6bd4\u304c(a, b)\u3067\u3042\u308b\u3001\u6700\u3082\u5927\u304d\u3044\u56db\u89d2\u5f62(x1, y1, x2, y2)\u3092\u898b\u3064\u3051\u308b\u4e8b\u3067\u3042\u308b\u3002 \u3053\u306e\u6761\u4ef6\u3092\u8a00\u3044\u63db\u3048\u308c\u3070\u3001 0 0 (x2 - x1) / (y2 - y1) = a / b \u3092\u6e80\u305f\u3059\u3053\u3068\u3067\u3042\u308b\u3002\u3053\u306e\u56db\u89d2\u5f62\u306e\u8fba\u306f\u8ef8\u306b\u5e73\u884c\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001x1\u2026","image_url":null,"blog_title":"WARush","author_name":"Ekaing","type":"rich","blog_url":"https://ekaing.hatenablog.com/","height":"190","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","title":"Codeforces #183 Div2 D \"Rectangle Puzzle II\"","version":"1.0","width":"100%"}