2 solutions

  • 0
    @ 2025-7-15 16:45:58

    #include <bits/stdc++.h> using namespace std; string s;

    int main() { cin >> s; cout << s.size(); while (cin >> s) { cout << "," << s.size(); }

    return 0;
    

    }

    • 0
      @ 2025-7-15 16:45:31

      #include <bits/stdc++.h> using namespace std; string s;

      int main() { cin >> s; cout << s.size(); while (cin >> s) { cout << "," << s.size(); } return 0; }

      • 1

      Information

      ID
      451
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      5
      Tags
      # Submissions
      21
      Accepted
      13
      Uploaded By