{"blog_url":"https://a-kawashiro.hatenablog.com/","published":"2011-04-11 20:50:30","type":"rich","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","url":"https://a-kawashiro.hatenablog.com/entry/20110411/1302522630","author_name":"a_kawashiro","title":"SRM311 div1 medium","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110411%2F1302522630\" title=\"SRM311 div1 medium - 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>","description":"\u6841\u3054\u3068\u306b\u8003\u3048\u3066\u8db3\u3059\u3060\u3051\u3002 typedef long long LL; LL S(LL num) { num++; LL r=0; for(LL digit=0,i=10;digit<15;digit++,i*=10) { LL l=num; r+=l/i*45*(i/10); l%=i; for(LL j=0;0<l;j++,l-=(i/10)) r+=((i/10)<=l)?j*(i/10):j*l; } return r; } class SumThemAll { public: long long getSum(int lowerBound, int upperBound) { retu\u2026","categories":["topcoder"],"blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","width":"100%","image_url":null,"provider_name":"Hatena Blog","height":"190"}