{"description":"#define LIM 3500000 \u304c\u5927\u4e8b\u3002 3^6+9^6\u00d76=3189375 \u306a\u306e\u3067\u7bc4\u56f2\u5916\u30a2\u30af\u30bb\u30b9\u3092\u8d77\u3053\u3055\u306a\u3044\u3002 #include <cstring> #include <cstdio> #define LIM 3500000 typedef long long LL; using namespace std; LL cache[LIM]; class ExtendedHappyNumbers { public: int K; LL S(LL n) { LL r=0; while(n!=0) { LL a=n%10,b=1; for(LL i=0;i<K;i++) b*=a; r+=b\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110419%2F1303214519\" title=\"SRM334 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>","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","published":"2011-04-19 21:01:59","title":"SRM334 div1 medium","blog_url":"https://a-kawashiro.hatenablog.com/","categories":["topcoder"],"width":"100%","url":"https://a-kawashiro.hatenablog.com/entry/20110419/1303214519","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","height":"190","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"type":"rich","author_name":"a_kawashiro"}