This content is archived!

For the 2018-2019 school year, we have switched to using the WLMOJ judge for all MCPT related content. This is an archive of our old website and will not be updated.

Do some math to hardcode the drawings. We can consider this as two operations: line across and lines down.


Do the operations in the order: across, down, across, down, across.

Line Across

Print (H + 1) / 2 stars. Let’s call this number W because it is the width of the eight.

Line Down

Print a star; print W − 2 spaces; print another star. (next line)

Do the above W − 2 times.

Time complexity



Read the problem.