{"blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","categories":["topcoder"],"type":"rich","author_name":"a_kawashiro","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","height":"190","title":"SRM431 div1 medium","version":"1.0","url":"https://a-kawashiro.hatenablog.com/entry/20110427/1303904802","published":"2011-04-27 20:46:42","width":"100%","image_url":null,"blog_url":"https://a-kawashiro.hatenablog.com/","provider_name":"Hatena Blog","description":"\u306a\u3093\u304b\u305d\u3093\u306a\u306b\u72b6\u614b\u306a\u3044\u3093\u3058\u3083\u306d\u3068\u601d\u3063\u3066\u30e1\u30e2\u5316\u3057\u305f\u3002 rng_58\u3055\u3093\u306e\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068A\u304c10\u4ee5\u4e0a\u306e\u3068\u304d\u306f0\u3089\u3057\u3044\u3002 #include <map> typedef long long LL; using namespace std; class MegaCoolNumbers { public: int N,A; map<LL,LL> cache; LL rec(int pos,int diff,int group,int before) { LL key=pos; key=key*20+diff; key=key*2000+group; key=key*20+before; if(pos==N\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110427%2F1303904802\" title=\"SRM431 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>","provider_url":"https://hatena.blog"}