339. Password Strength
EasyValidation
A strong password has length ≥ 8 and contains a lowercase letter, an uppercase letter, a digit and one of !@#$%^&*. Print STRONG, or the number of missing requirements (counting short length as one requirement).
Input format
A single line (the password).
Output format
STRONG or a number.
Example 1
Input
Ab1!xyz9
Output
STRONG
Example 2
Input
password
Output
3
Constraints
1 ≤ length ≤ 100
Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.
Loading the MyLoginn IDE…