|
|||
Slow Motion“Slow motion” is a technique in filmmaking whereby time appears to be slowed down. Typically this is achieved when each film frame is captured at a rate much faster than it will be played back. When replayed at normal speed, time appears to be moving slower. It is possible to apply slow motion also for texts: by duplicating every letter, you can halve the reading speed. Your task is to write a program that “slows down” a given text. Input SpecificationThe input contains several blocks of test cases. The first line of each case contains a single integer 1 ≤ n ≤ 1000, the number of lines of the input text. The next n lines contain the input text, which consists of only lowercase letters and spaces. The length of each line is at most 1000. The input is terminated by a block with n = 0. Output SpecificationFor each test case, you have to output the “slowed-down” version of the text: each character (including the spaces but not the new line characters) should be output two times. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |