All submissions for this problem are available.
On Internet sites usually the registration form automatically checks and validate the passowrd's crypt resistance. If the user's password isn't complex enough a message is displayed. You have already implemented password validation in Web Programming class. Today your task is to implement password validation program.
It should meet the following conditions:
- Length is atleast 5 characters.
- At least one Large English letter.
- At least one small English letter.
- It should contain at least one digit.
You are given a password. Check whether password satisfies all the conditions.
First line contains sequence of characters (Not more than 100) . Character can be either a small letter, or a large letter, or a digit or one of the characters : "_" , "." , "?" , "," , "!" .
If the password satisfies all the conditions print "YES", otherwise print "NO".
Input: abcdefgh Output: NO
Input: SPIT_Coders_Club_2.0 Output: YES
Case 1. It contains only lowercase letters.
Case 2. It satisfies all the conditions.
|Tags||ad-hoc, cakewalk, vicky002|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions