#include <iostream> #include <sstream> #include <vector> using namespace std; int main() { string s; getline(cin,s); //读取一行字符串 istringstream ss(s); vector<string> res; string tmp; while(getline(ss,tmp,' ')){ //以空格进行分割 res.push_back(tmp);...