poj 3181
摘要:
地址:http://poj.org/problem?id=3181题意:类似分硬币,给n,m,钱是n,有m中硬币,分别是1~m,求多少种分法mark:普通的完全背包不行,会超long long,需要一点高精度的技巧,会大数加法就没问题了。代码:#include <cstdio>#include <cstring>#include <cstdlib>#include <cmath>#include <iostream>#include <algorithm>#include <map>#define LL lon 阅读全文
posted @ 2012-09-21 20:14 andre_joy 阅读(156) 评论(0) 推荐(0) 编辑