第四题贪心: #include<bits/stdc++.h> using namespace std; int main(void) { int t; cin >> t; while (t) { --t; int n; long long sum = 0; long long ma = 0; long long t = 0; cin >> n; vector<long long> v; v.push_back(0);