#C2105. Password Strength Checker
Password Strength Checker
Password Strength Checker
You are given a password string. Your task is to determine whether this password is Strong or Weak based on the following criteria:
- The password must have at least 8 characters, i.e. \( n \geq 8 \).
- The password must contain at least one lowercase letter (a-z).
- The password must contain at least one uppercase letter (A-Z).
- The password must contain at least one digit (0-9).
- The password must contain at least one special character from the set:
! @ # $ % ^ & * ( ) - +
.
If all of the above conditions are met, output Strong
, otherwise output Weak
.
inputFormat
The input consists of a single line containing the password string.
outputFormat
Output a single line, either Strong
or Weak
depending on whether the password meets all the criteria.
P@ssw0rd
Strong
</p>