举例前几个就能看出来规律了: #include<iostream> #include<vector> using namespace std; int main(){ int N; vector<int> vec; while(cin>>N) { &nbs...