{"height":"190","description":"\u6607\u9806\u306b\u30bd\u30fc\u30c8\u3059\u308b\u3068\u7c21\u5358\u306b\u306a\u308b\u3002 rec(\u4eca\u4f55\u756a\u76ee\u306e\u30b5\u30a4\u30b3\u30ed\u3001\u6700\u4f4e\u3067\u3082\u51fa\u3055\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u76ee)\u3092\u30e1\u30e2\u5316\u3002 #include <algorithm> #include <cstring> #include <vector> typedef long long LL; using namespace std; class DiceGames { public: int n; LL cache[50][50]; vector<int> sides; LL rec(int k,int least) { LL &r=cache[k][least]; if(r!=-1) ; else if(k==n) r=\u2026","width":"100%","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","categories":["topcoder"],"url":"https://a-kawashiro.hatenablog.com/entry/20110410/1302430224","title":"SRM349 div1 medium","blog_url":"https://a-kawashiro.hatenablog.com/","provider_url":"https://hatena.blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110410%2F1302430224\" title=\"SRM349 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>","published":"2011-04-10 19:10:24","author_name":"a_kawashiro","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","image_url":null,"type":"rich"}