{"description":"\u4f55\u500b\u306e\u30b5\u30a4\u30b3\u30ed\u304cv\u3092\u51fa\u3059\u304b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u5206\u3051\u308b #include <algorithm> using namespace std; double cache[2500+10][50+10]; class Conditional { public: int v; int maxSide; double C[55][55]; double rec(int sum,int nD) { if(sum<=0) return 1.0; else if(nD==0) return 0.0; else { double &r=cache[sum][nD]; if(!(r<-1.0)) return r; r=\u2026","url":"https://a-kawashiro.hatenablog.com/entry/20110501/1304234453","blog_url":"https://a-kawashiro.hatenablog.com/","author_name":"a_kawashiro","version":"1.0","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110501%2F1304234453\" title=\"SRM304 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","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","published":"2011-05-01 16:20:53","categories":["topcoder"],"image_url":null,"width":"100%","type":"rich","title":"SRM304 div1 medium","height":"190"}