遍历求和 #include <iostream> using namespace std; int main() { int T; cin >> T; while (T--) { int n, w, c; cin >> n >> w >> c; int wc[2 * n]; for (int i = 0; i < 2 * n; i++) { cin >> wc[i]; ...