#K2801. Password Strength Checker
Password Strength Checker
Password Strength Checker
You are given a list of passwords. For each password, determine whether it is strong or not. A password is considered strong if it satisfies all the following conditions:
- The password has at least 8 characters.
- The password contains at least one uppercase letter.
- The password contains at least one lowercase letter.
- The password contains at least one digit.
- The password contains at least one special character from the set: \(\{!@#$%^&*()-+\}\).
Read the input from standard input and output the result for each password on a new line. If the password is strong, output True
; otherwise, output False
.
inputFormat
The first line of input is an integer \(n\) representing the number of passwords. The next \(n\) lines each contain a single password string.
outputFormat
For each password, output True
if it is strong, or False
otherwise. Each result should be printed on its own line.
1
aB3!dEFg
True
</p>