Drawing Snail - Rotated ㅍ
InterviewTime limit1sMemory limit512 MB
Given a cell size N, print a snail drawn as a 90-degree counterclockwise rotated ㅍ shape on a 5 by 5 grid, scaling each cell to N.
- Level
Easy2 of 10
- Topics
- Implementation, Simulation, Matrix
- Solved
- No attempts yet
Problem
Seojun received a box containing a snail from his father as a birthday present. Inside the box is a snail shaped like the letter ㅍ rotated 90 degrees counterclockwise. The rotated ㅍ shape consists of 5 cells horizontally and 5 cells vertically. On the box is written a single number indicating the size of each square cell. Given the cell size N, print the snail shape in the same manner as the example output below.
Input
The first line contains the integer N (1 ≤ N ≤ 100).
Output
Print the snail with cell size N.