|
||||||||||
Kaitou Kid - The Phantom Thief (1)Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5889 Accepted Submission(s): 2459 Problem Description Do you know Kaitou Kid? In the legend, Kaitou Kid is a master of disguise, and can take on the voice and form of anyone. He is not an evil person, but he is on the wrong side of the law. He's the very elusive phantom thief who never miss his prey although he always uses word puzzles to announce his targets before action. You are the leader of a museum. Recently, you get several priceless jewels and plan to hold an exhibition. But at the moment, you receive Kid's word puzzle... Fortunately, It seems Kid doesn’t want to trouble you, and his puzzle is very easy. Just a few minutes, You have found the way to solve the puzzle: (1) change 1 to 'A', 2 TO 'B',..,26 TO 'Z' (2) change '#' to a blank (3) ignore the '-' symbol, it just used to separate the numbers in the puzzle Input The first line of the input contains an integer C which means the number of test cases. Then C lines follow. Each line is a sentence of Kid’s word puzzle which is consisted of '0' ~ '9' , '-' and '#'. The length of each sentence is no longer than 10000. Output For each case, output the translated text. Sample Input
Sample Output
Author LL Source | ||||||||||
|