摘要: 容斥+背包。 先做完全背包,然后就去掉用的硬币大于限量的,用容斥原理去下重就行了。 #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int N=100005; int c[5],T 阅读全文
posted @ 2018-10-05 19:45 SWHsz 阅读(127) 评论(0) 推荐(0)