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

Сборники > Beginners > задача:


052. 50503 - Welcome Andi - 2

Гость
• Обсуждение задачи (2)

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

• 030. 50341 - Separate Into Digits
• 034. 50502 - Welcome Andi - 1
• 040. 50879 - Passed or Failed
• 040. Student results
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 050. 50568 - Llogaritesi i indeksit te...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Numri ma te madhe n...
• 062. 50402 - Hello World!
• 063. Cifti me i afert
• 065. 50436 - Pocket Money
• 068. 50581 - Rrenjet e Ekuacionit K...
• 070. 50439 - Telephone Calls

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

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

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

Welcome Andi - 2

Question:
You are writing a login system for a website. Write program that gets name and password from the user. If the user enters correct password (correct password is "1234"), you will show a welcome message. If the password doesn't match, you show a sorry message.

Input specification
You will be given two strings: Name and a password. Both strings are not longer than 12 characters and seperated by a space. Name contains only English letters and password may contain only letters and/or digits.

Output specification
Show the message "Welcome Name.", if the given password is correct. Otherwise, show the message "Sorry Name!". Please pay attention to the space between the words and "." and "!" at the end of messages.

 Sample Input I     Sample Input II   
 Landi 1234
 Ardi ab123
 Sample Output I     Sample Output II   
 Welcome Landi.
 Sorry Ardi!


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

www.contester.ru