#CCBCHBA0000074. Hình chữ nhật m nhân n (Rectangle of Stars)
Hình chữ nhật m nhân n (Rectangle of Stars)
Rectangle of Stars
Source: Phước Hưng OJ
Problem Statement
Given positive integers m and n, print exactly m rows, each consisting of n consecutive * characters, with no spaces.
Input
One line containing exactly two positive integers, separated by whitespace.
Output
Print exactly the required output described above. Do not print prompts, extra characters, or blank lines. For numerical rows, separate adjacent values with a single space and no trailing space.
Subtasks
- Subtask 1 (20%): Both input integers are in [1,3].
- Subtask 2 (30%): Both input integers are in [1,10].
- Subtask 3 (50%): Both input integers are in [1,30].
Examples
Example 1
Input:
2 3
Output:
***
***
Explanation:
Two rows of three stars; m is the number of rows, n is the number of columns.
Example 2
Input:
1 4
Output:
****
Explanation:
One row still contains four columns.