错误思路 #include<bits/stdc++.h> using namespace std; using i64 = long long; struct item { int cost; int value; double vc; }; struct cmp { bool operator()(const item& a, const item& b) const { return a.vc > b.vc; } }; void solve() { int n, k; cin >> n >> k; vector&...