PRF192-Examination 01
Problem 3
[3 Points]
Reference from Microsoft, a strong password is a string that meets all of the following conditions:
• At least 12 characters long but 14 or more is better.
• A combination of uppercase letters, lowercase letters, numbers, and symbols.
To determine whether a password is strong, you need to identify its length L, count the number of uppercase letters H, count the number of lowercase letters T, count the number of digits S, and count the number of special characters D.
Your task is to input a password string and then output the five values L, H, T, S, and D.
Example 1: For the string "aB34@#", the required output is 6 values: 6, 1, 1, 2, 2.
Example 2: For the string "Admin@230902", the required output is 5 values: 12, 1, 4, 6, 1.
Input
Only one line contains a password.
Constraint
The maximum length of password is 200 characters.
Output
Please print the five values L, H, T, S, and D, separated by ", " (a comma followed by a space)..
Sample
Input
Output
Sample 1
aB34@#
6, 1, 1, 2, 2
Sample 2
Admin@230902
12, 1, 4, 6, 1
Zoom
+ 100%
Close