{"version":"1.0","blog_url":"https://logfiles.hatenablog.com/","title":"SRM413 Div1Easy ArithmeticProgression","categories":["SRM"],"url":"https://logfiles.hatenablog.com/entry/20140827/1409115662","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140827%2F1409115662\" title=\"SRM413 Div1Easy ArithmeticProgression - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"moistx","blog_title":"Logfiles","published":"2014-08-27 14:01:02","description":"\u89e3\u6cd5 \u8aa4\u5dee\u306e\u306a\u3044\u89e3\u6cd5\u3092\u76ee\u6307\u3059\u3002 #define INF (1<<29) #define EPS (1e-9) class ArithmeticProgression { public: double minCommonDifference(int a0, vector <int> seq) { if(seq.empty()) { return 0.; } for(int i=0; i<seq.size(); i++) seq[i] -= a0; double d_mn = 0., d_mx = INF; for(int i=0; i<seq.size(); i++) { d_mn = max(\u2026","provider_url":"https://hatena.blog","width":"100%","height":"190","author_url":"https://blog.hatena.ne.jp/moistx/","image_url":null,"type":"rich"}