{"version":"1.0","blog_url":"https://touyoubuntu.hatenablog.com/","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"author_name":"touyou1121","provider_name":"Hatena Blog","height":"190","url":"https://touyoubuntu.hatenablog.com/entry/20110922/1316700486","published":"2011-09-22 23:08:06","type":"rich","description":"class DigitsSum { public: int lastDigit( int n ) { if (n < 10) return n; int res = 0; stringstream ss; ss << n; string snum; ss >> snum; for (int i=0; i<snum.length(); i++) res += snum[i] - '0'; return lastDigit(res); } };","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftouyoubuntu.hatenablog.com%2Fentry%2F20110922%2F1316700486\" title=\"DigitsSum - \u5922\u8ffd\u3044\u4eba\" 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/touyou1121/","title":"DigitsSum","image_url":null,"blog_title":"\u5922\u8ffd\u3044\u4eba","provider_url":"https://hatena.blog","width":"100%"}