CCC '12 J3 - Icon Scaling


Submit solution

Points: 1
Time limit: 0.5s
Memory limit: 256M

Problem type
Allowed languages
C++, Python

The output will be \(3k\) lines, which represent each individual line scaled by a factor of \(k\) and repeated \(k\) times. A line is scaled by a factor of \(k\) by replacing each character in the line with \(k\) copies of the character.

Sample Input

3

Output for Sample Input

***xxx***
***xxx***
***xxx***
   xxxxxx
   xxxxxx
   xxxxxx
***   ***
***   ***
***   ***

Comments

There are no comments at the moment.