skener - bradendubois/competitive-programming GitHub Wiki

Skener

ID: skener

Difficulty: 1.6

CPU Time: 1 second

Memory: 1024 MB

Solution

For this one, to "scale" a character as shown, for each line read in, one can repeat the row's horizontally-scaled output Zc times. To horizontally scale each row, one can simply iterate through the original, and output each character Zr times.