{"height":"190","width":"100%","published":"2011-04-02 15:10:00","url":"https://a-kawashiro.hatenablog.com/entry/20110402/1301724600","title":"SRM334 div2 hard","version":"1.0","type":"rich","author_name":"a_kawashiro","categories":["topcoder"],"blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","description":"\u96e3\u3057\u3044\u3002\u5206\u304b\u3089\u3093\u3002 if(happiness[now]==-3) return now; \u3067\u306a\u3093\u3067-3\u306a\u306e\u304b\u306e\u81ea\u5206\u306a\u308a\u306e\u30a4\u30e1\u30fc\u30b8\u56f3\u3002 #include <algorithm> #include <cstring> #define LIMIT 5000000 typedef long long LL; using namespace std; class ExtendedHappyNumbers { public: int K; int happiness[LIMIT]; int rec(int now) { if(0<happiness[now]) return happiness[now];\u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110402%2F1301724600\" title=\"SRM334 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>","blog_url":"https://a-kawashiro.hatenablog.com/","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/a/a_kawashiro/20110402/20110402150912.gif","provider_name":"Hatena Blog"}