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

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


052. 50503 - Welcome Andi - 2

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

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

• 51030 - Number of Right Triangles
• 005. 50797 - Nr of Missing Guests
• 007. 50280 - Division
• 028. 50521 - Pound to Grams
• 034. 50502 - Welcome Andi - 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 062. 50402 - Hello World!
• 063. Cifti me i afert
• 068. 50581 - Rrenjet e Ekuacionit K...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...
• 140. 50417 - Fun Fair

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

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