#P9471. [yLOI2022] 签到题
[yLOI2022] 签到题
Problem Description
Given a string of length , please count the number of lowercase letters, uppercase letters, and digit characters in , respectively.
Input Format
The input contains only one line: a string of length .
Output Format
Output one line with three integers, in order:
- The number of digit characters in .
- The number of lowercase letters in .
- The number of uppercase letters in .
yLOI2022
4 1 3
IAKIOIOI
0 0 8
1n2s0e1s
4 4 0
Hint
Constraints
For of the testdata, it is guaranteed that the length of is , 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 |
|---|---|---|---|
| √ | × | × | |
| × | √ | ||
| × | √ | ||
| √ | √ | × | |
| × | √ | ||
| × | √ | ||
| √ | |||
Translated by ChatGPT 5