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

Сборники > Фёдор Меньшиков. Тренировки > задача:


150. 50763 - Valid Password

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

Задачи сборника

• 132. 50504 - School contest
• 135. 50392 - How much space
• 136. 50443 - Dajte Express
• 140. 50655 - Plotpjesetueshmeria me 9
• 145. 50656 - Plotpjestueshmeria me 11
• 147. 50553 - I pjestueshem me 2013
• 148. 50596 - Udhetimi juaj eshte ketu
• 148. 50596 - Udhetimi juaj eshte ketu
• 150. 50763 - Valid Password
• 151. 50560 - Distanca maksimale
• 153. 50368 - Right-most non zero d...
• 155. 50379 - a^b modulus k
• 158. 50404 - Sum of Self Powers
• 160. Cmimi Mesatar i Karburantit
• 180. 50343 - The number of Ending...
• 30. 50764 - Fast Typing Competition

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

Если у вас есть предложения или пожелания по работе 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