|
||||||||||
Hexadecimal ViewTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3767 Accepted Submission(s): 1533 Problem Description Hexadecimal is very important and useful for computer programmers. You are requested to provide a hexadecimal view for given data. The hexadecimal view is made up of one or more rows. Every row except the last one represents 16 characters. Each row consists of three columns separated by a space: * addr: the 4-digit hexadecimal beginning address of this row. * dump: the hexadecimal representation of this row, separating every two characters by a whitespace. If there are less than 16 characters in the last row, pad it with spaces. * text: the ASCII translation of this row, with uppercase characters converted to lowercase and lowercase characters converted to uppercase. Use lowercase for the letter digits. See sample for more details. Input There are multiple test cases. Each line is a test case. The line is made up of no less than 1 and no more than 4096 printable characters including spaces. Output For each test case, output its hexadecimal view. Do not output any extra spaces after the last character of text. Sample Input
Sample Output
Author WU, Zejun Source | ||||||||||
|