Rectangles (1)

Write a program that prints rectangles with n × m values
(n + m) mod  5’s.

Input

Input consists of several pairs of natural numbers.

Output

For every pair (n, m), print a rectangle of size n × m full of
(n + m) mod  5’s. Separate two rectangles with an empty line.

Problem information

Author: Unknown
Translator: Maria Serna

Generation: 2026-01-25T14:45:45.379Z

© Jutge.org, 2006–2026.
https://jutge.org
