Is the Password Strong Enough?

You are required to create a password checker program that verifies if a given password is strong or not. A password is considered strong if it satisfies all the following conditions:
  1. It is at least 8 characters long.
  1. It contains at least one uppercase letter.
  1. It contains at least one lowercase letter.
  1. It contains at least one digit.
  1. It contains at least one special character (such as !@#$%&*).
The input to the program is a single line, containing the password string.
The program should print Yes if the password is strong (i.e., it satisfies all the conditions above), and No, otherwise.
Input
Output
StrongPas$1
Yes
weakpass
No

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue