Milk MeasuringHal Burch Farmer John must measure Q (1 <= Q <= 20,000) quarts of his finest milk and deliver it in one big bottle to a customer. He fills that bottle with exactly the number of quarts that the customer orders. Farmer John has always b…
传送门 传送门 dfs选取集合,dp背包判断 虽然我觉的会TLE.. 但是的确是AC了 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #define N 20001 int n, m; int a[N]; bool vis[N], f[N]; inline int read() { int x = 0, f = 1; char ch = getcha…