1 solutions

  • 0
    @ 2025-11-5 18:33:06

    C++ :

    #include <iostream>
    #include <cstdio>
    #include <cstring>
    using namespace std;
    const int N = 10010;
    char ch[N];
    bool f = 1;
    int main()
    {
        string s;
        while (cin >> s){
            if(f) f = 0;
            else cout << ",";
            cout << s.size();
        }
    
        return 0;
    }
    
    • 1

    Information

    ID
    18920
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By