Skip to main content

Practice · 4 of 5

Case Statistics

CHALLENGE
Difficulty: beginner+25 XP

**Description:** Given a line of text, count uppercase letters, lowercase letters, and digits. Print them on one line in that order, space-separated. **Input:** One line (1 <= length <= 10^6, letters, digits, and spaces). **Output:** Three integers separated by single spaces. **Example:** Hoc Sinh Gioi 2026 -> 3 10 4.

Back to lesson: Practice: String Problem Set