No CAPTCHA, Please!
CAPTCHA (Completely Automated Public Turing Test To Tell Computers and Humans Apart) is supposed to be able to tell apart human and computer bots by asking a user to solve a simple puzzle, often a series of random letters scrambled with random lines and stuff. Examples of CAPTCHA puzzles are shown below:
However, sadly I always have problems solving many CAPTCHAs, especially ones with a mixture of lowercase and uppercase letters. I always get them wrong during the first few tries. So no more hard CAPTCHA, please!! Your task is to write a program that is lenient on my poor skill of solving a CAPTCHA challenge. The program should do the followings:
The input contains several test cases. A test case consists of 2 words in the same line, separated by a space. The first word is a correct CAPTCHA, and the second word is what I answer. The two words will always be of the same length. The number of test cases is unknown, the input is terminated by end-of-file (EOF).
For each test case, your program should output either “Right” (if I answer the CAPTCHA correctly) or “WRONG” (if I answer it incorrectly), followed by a space and the number of mistakes.
Output for Sample Input
|University of Debrecen; Faculty of Informatics; v. 03/01/2019|