// dp[i][j]表示只用前i种邮票能凑成总值M的最少邮票数,如果凑不成为INF // dp[0][j] = INF // dp[i][0] = 0 /* dp[i][j] = min(dp[i - 1][j], dp[i - 1][j - p[i]] + 1) */ #include<bits/stdc++.h> using namespace std; const int INF = 1e8; int main() { int M, n; while (cin >> M >> n) { vector&l...