Grid Drawing
Time limit1sMemory limit1024 MB
Given cell size k, grid width w, height h, and line thickness t, the task prints an ASCII grid of * for lines and . for cells.
- Level
Easy2 of 10
- Topics
- Implementation, Simulation
- Solved
- No attempts yet
Problem
Integers , , , and are given. Draw a rectangular grid that is cells wide and cells tall. Each cell is in size, and the lines are thick. Use the character * for lines and . for cells.
Input
The first line contains an integer (). The second line contains an integer (). The third line contains an integer (). The fourth line contains an integer ().
Output
Print the image of the grid.