摘要: Subset SumsJRM For many sets of consecutive integers from 1 through N (1 #include using namespace std; const int mm=2300; long long f[60][mm]; long long dp(int x,int c) { memset(f,0,sizeof(f)); f[1][0]=1;f[1][1]=1; for(int i=2;i=0) f[i][j]=f[i-1][j]+f[i-1][j-i]; else f[i][j]=f[i-1][j]; /*... 阅读全文
posted @ 2012-08-29 20:37 剑不飞 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Preface NumberingA certain book's prefaces are numbered in upper case Roman numerals. Traditional Roman numeral values use a single letter to represent a certain subset of decimal numbers. Here is the standard set: I 1 L 50 M 1000 V 5 C 100 X 10 D 500 ... 阅读全文
posted @ 2012-08-29 16:47 剑不飞 阅读(157) 评论(0) 推荐(0) 编辑