HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Strings > problem:


50503 - Welcome Andi - 2

Guest
• Discussion of problem (2)

Section problems

• 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 - Frequency of Letters
• 50596 - Your Ride Is Here (USACO)
• 50596 - Your Ride Is Here (USACO)
• 50655 - Divisibility by 9
• 50656 - Divisibility by 11

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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