// 字符串的打印!
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
vector<string> vct;
getline(cin,str);
bool in = false;
string tmp;
for (int i = 0; i < str.size(); i++) {
if (str[i] == '"') {
in = !in;
}
else if (str[i] == ' ' && !in) {
vct.push_back(tmp);
tmp.clear();
}
else {
tmp += str[i];
}
}
vct.push_back(tmp);
cout << vct.size() << endl;
for (auto e : vct) {
cout << e << endl;
}
return 0;
}

京公网安备 11010502036488号