1、简单做的是节日礼物简单模拟即可,代码如下 100% #include <bits/stdc++.h> using namespace std; int main(){ string s; vector<int> v; while(cin >> s){ auto n = stoi(s); v.push_back(n); char c = cin.get(); if (c == '\n') { break; } ...