#P9471. [yLOI2022] 签到题

[yLOI2022] 签到题

Problem Description

Given a string ss of length 88, please count the number of lowercase letters, uppercase letters, and digit characters in ss, respectively.

Input Format

The input contains only one line: a string ss of length 88.

Output Format

Output one line with three integers, in order:

  • The number of digit characters in ss.
  • The number of lowercase letters in ss.
  • The number of uppercase letters in ss.
yLOI2022
4 1 3
IAKIOIOI
0 0 8
1n2s0e1s
4 4 0

Hint

Constraints

For 100%100\% of the testdata, it is guaranteed that the length of ss is 88, 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
11 × ×
22 ×
33 ×
44 ×
55 ×
66 ×
77
88
99
1010

Translated by ChatGPT 5