ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Строки > задача:


50763 - Valid Password

Гость
• Вопросы к жюри (4)

Задачи раздела

• 50246 - Making Potions
• 50258 - String manipulations
• 50264 - String Multiplication
• 50307 - Palindromes
• 50315 - Pig Latin
• 50484 - Number Of Letters
• 50323 - Filtering Contact List
• 50409 - Random Password Generator
• 50763 - Valid Password
• 50429 - Secret Message
• 50511 - Class Average
• 50502 - Welcome Andi - 1
• 50503 - Welcome Andi - 2
• 50926 - School Mail Merge
• 50764 - Fast Typing Competition
• 50533 - Contacts List
• 50555 - Frekuenca e karaktereve

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by : Ibrahim Mesecan.

Valid Password

Question:
You are managing the school information system. The school administration wants to enforce people to have certain security level for their passwords. And thus, they want all passwords:

  • to be at least 4 chars long or at most 12 chars long
  • to include,
    • at least one lowercase letter from English alphabet
    • at least one uppercase letter from English alphabet
    • at least one digit: 0, 1, 2, ..9
    • at least one special character from the following: ! " # $ % & ' ( ) * + , - .
and they don't want passwords to include any other characters.

Input specification
You will be given a string in a line. The string may contain any ASCII char (chars from ASCII table between 32 and 255).

Output specification
Show the message "OK", if the given password complies all condition. Otherwise, show the message "NO".

 Sample Input I     Sample Output I   
(3p0Ka-C3n)
 OK


Для отправки решений необходимо выполнить вход.

www.contester.ru