|
|||
Extra SpacesIn programming, multiple whitespaces are used only to make the code more readable, so almost all programming languages totally ignore multiple spaces in the code (except for some esoteric ones). In general, there are different types of whitespace characters: space itself, tab, the newline symbol, various control characters, etc. Tabs and spaces bring one of the biggest holy wars, if not the biggest holy war, to a programmer's world as there is no common rule what to use for code indentation — tab or space characters. In this holy war, you stand for the tab side, and your project code convention requires to use only tabs for code indentation. However, you have recently spotted that someone is using space characters instead. Four spaces and one tab character look the same in our text editor, so you have decided to write a parser that will change all adjacent space characters to one. After that, you would be able to determine the amount of corrupted code. Input SpecificationThe number of test cases T (T ≤ 100) is given in the first line of the input. In the first line of each test case, there is an integer N (N ≤ 50). In the next N lines, text that must be processed for extra spaces follow. The maximum line length is 500 characters. Output SpecificationFor each test case, output in the fist line “Case T:”, where T is the test case number (starting from 1). The next N lines must contain the input text having no adjacent spaces. Always leave a blank line between tests. Please refer to the sample output for clarity. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |