#include <iostream> #include <vector> using namespace std; int main() { string str; vector<string> v; while(cin >> str){ v.push_back(str); } int size = v.size(); cout << v[size - 1].length() << endl; return 0; } // 64 位输出请用 printf("%lld")
#include <iostream> #include <vector> using namespace std; int main() { string str; vector<string> v; while(cin >> str){ v.push_back(str); } int size = v.size(); cout << v[size - 1].length() << endl; return 0; } // 64 位输出请用 printf("%lld")