{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140714%2F1405302969\" title=\"SRM614 Div1Easy MinimumSquare - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://logfiles.hatenablog.com/","published":"2014-07-14 10:56:09","author_url":"https://blog.hatena.ne.jp/moistx/","width":"100%","provider_name":"Hatena Blog","height":"190","author_name":"moistx","type":"rich","description":"\u554f\u984c\u6982\u8981 K\u500b\u4ee5\u4e0a\u306e\u5ea7\u6a19\u3092\u5b8c\u5168\u306b\u5305\u542b\u3067\u304d\u308b\u6b63\u65b9\u5f62\u306e\u6700\u5c0f\u9762\u7a4d\u3092\u6c42\u3081\u3088\u3002\u5236\u7d04 \u5ea7\u6a19\u306e\u8981\u7d20\u6570\uff1a2\u301c100\u500b -10^9 \u89e3\u6cd5 \u4e0e\u3048\u3089\u308c\u305f\u5ea7\u6a19\u306e\u3046\u3061\u300c\u300e1\u70b9\u306e\u5ea7\u6a19(X, Y)\u300f\u307e\u305f\u306f\u300e2\u70b9\u306e x, y \u305d\u308c\u305e\u308c\u306e min \u3092\u53d6\u3063\u305f\u5ea7\u6a19(X, Y)\u300f\u300d\u304b\u3089\u4e00\u56de\u308a\u5927\u304d\u3044\u5ea7\u6a19(X-1, Y-1) \u3092\u59cb\u70b9\u3068\u3057\u3066\u3001\u4e00\u8fba\u3092\u4e8c\u5206\u63a2\u7d22\u3059\u308b\u3002\u8a08\u7b97\u91cf\u306f N^3 * log(10^9) = N^3 * 30 = 10^6 * 30 \u304f\u3089\u3044\u3002 using namespace std; #define REP(i,a,b) for(int i=a;i<b;i++) #define rep(i,n) REP(i,0,n) #de\u2026","title":"SRM614 Div1Easy MinimumSquare","categories":["SRM"],"image_url":null,"provider_url":"https://hatena.blog","url":"https://logfiles.hatenablog.com/entry/20140714/1405302969","blog_title":"Logfiles","version":"1.0"}