P9471 [yLOI2022] Check-in Problem
Description
Given a string $s$ of length $8$, please count the number of lowercase letters, uppercase letters, and digit characters in $s$, respectively.
Input Format
The input contains only one line: a string $s$ of length $8$.
Output Format
Output one line with three integers, in order:
- The number of digit characters in $s$.
- The number of lowercase letters in $s$.
- The number of uppercase letters in $s$.
Explanation/Hint
### Constraints
For $100\%$ of the testdata, it is guaranteed that the length of $s$ is $8$, and it contains only uppercase letters, lowercase letters, and digits.
Below is the existence of each type of character in each test point. √ means it exists, and × means it does not exist.
| Test Point ID | Digits | Lowercase Letters | Uppercase Letters |
| :-: | :-: | :-: | :-: |
| $1$ | √ | × |× |
| $2$ | × | √ | × |
| $3$ | × | × | √ |
| $4$ | √ | √ |× |
| $5$ | √ | × |√ |
| $6$ | × | √ | √ |
| $7$ | √ | √ | √ |
| $8$ | √ | √ | √ |
| $9$ | √ | √ | √ |
| $10$ | √ | √ | √ |
Translated by ChatGPT 5