eolymp
bolt
Try our new interface for solving problems
Problems

Length of words

published at 2/21/24, 5:52:51 pm

include <bits/stdc++.h>

define ll long long int

define ld long double

using namespace std; int main(){

ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string n;
vector<ll>v;
while(cin>>n){
    ll m = n.size();
    v.push_back(m);
}
for(int i = 0; i<v.size(); i++){
    cout<<v[i]<<' ';
}

} //TECHNOBLADE NEVER DIES