#K241. Password Strength Validator
Password Strength Validator
Password Strength Validator
Given a list of passwords, your task is to determine whether each password is strong. A password is considered strong if it satisfies all of the following conditions:
- It has at least 8 characters.
- It contains at least one uppercase letter (A–Z).
- It contains at least one lowercase letter (a–z).
- It contains at least one digit (0–9).
- It contains at least one special character from the set \(\!@#\$%\^&\*\(\)-\+\).
For each password, output "YES" if it is strong, or "NO" otherwise.
inputFormat
The input is read from stdin as a single line of space‐separated passwords.
outputFormat
The output should be written to stdout as a single line of space‐separated results, where each result is either "YES" or "NO" corresponding to each input password.
## sampleMyP@ssw0rd Pa$$w0rd123 WeakPass123 No$pecialChar Strong@45
YES YES NO NO YES