第一题 buff总共持续时间,新buff会重置旧buff #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; cin >> n; vector<pair<int, int>> pa(n); for (int i = 0; i < n; ++i) { cin >> pa[i].first; ...