|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|1 초||128 MB||94||40||37||59.677%|
Finally, the budget for enhancing Arbiter web site (which is an online judge) is allocated and your job is to improve the functionality of its login page. The new login page should help users on two common login mistakes:
Given a username and a password in the login page, the system compares the entered password with the original one (for that username). If they were the same, the login step is successfully finished and the user is redirected to the appropriate page. Otherwise, the login is unsuccessful. But, some extra hints should be given to the user if the entered password was related to the original one in the following ways:
Given both the entered password and its original one, you have to write a program which prints the appropriate message.
The input contains n test cases. The first line of input has only the integer n. Each of the next n lines is a test case having two strings of at least one and at most 10 alphanumeric characters. The first string is the original password, and the second one is the password entered by the user in the login page.
Write the result of the ith test case, on the ith line of output. As you see in the sample output, you should write the test case number and then, one of the following messages:
6 aaBBccDD aaBBccDD aaBBccDD aaBBccDD9 aaBBccDD aaBBCCDD aaBBccDD AAbbCCdd a4B3c2D1 aBcD a4B3c2D1 AbCd
Case 1: Login successful. Case 2: Wrong password. Case 3: Wrong password. Case 4: Wrong password. Please, check your caps lock key. Case 5: Wrong password. Please, check your num lock key. Case 6: Wrong password. Please, check your caps lock and num lock keys.