eolymp
bolt
Try our new interface for solving problems
Məsələlər

Sözlərin uzunluqları

dərc olunub 21.02.24 17:52:51

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

dərc olunub 30.04.24 14:32:46

include <stdio.h>

include <string.h>

include <math.h>

int main() { char n[20]; int size; while(scanf("%s",&n)!=EOF){ size=strlen(n); printf("%d ",size); } }