{"url":"https://a-kawashiro.hatenablog.com/entry/20110330/1301451621","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110330%2F1301451621\" title=\"SRM385 div2 hard - a_kawashiro\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2011-03-30 11:20:21","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","description":"\u6570\u5b66\u30b2\u30fc\u306f\u5acc\u3044\u3002 \u307e\u305f\u6557\u5317\u3057\u305f\u3002 \u201d\u81ea\u7136\u6570a,b,m\u304c\u3042\u3063\u3066\u3001lcm(a,b) \u3068\u3044\u3046\u306e\u304c \"a,b\u304c\u4e92\u3044\u306b\u7d20\u306a\u30891=a*x+b*y\u3068\u306a\u308bx,y\u304c\u5b58\u5728\u3059\u308b\" \u3068\u3044\u3046\u306e\u3092\u3082\u3068\u306b\u3057\u3066\u6210\u7acb\u3059\u308b #include <cstdio> #include <algorithm> using namespace std; typedef long long LL; class SummingArithmeticProgressions { public: int gcd(int a,int b) { if(b==0) return a; else return gcd(b,a%b); } int lcm(in\u2026","height":"190","image_url":null,"version":"1.0","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog","title":"SRM385 div2 hard","categories":["topcoder"],"width":"100%","author_name":"a_kawashiro","type":"rich","blog_url":"https://a-kawashiro.hatenablog.com/"}