1. 道具魅力值 const int len = 10005; vector<int> infor(len, 0); int N, V, v, w, s; int main() { cin >> N >> V; for (int i = 0; i < N; i++) { cin >> s >> v >> w; for (int j = V; j >= 0; --j) { for (int k = 1; k <= s && k*v <= j; ++k) { ...