[BOJ 10188] Quadrilateral

View as PDF

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem type
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

A quadrilateral is a 4-sided figure. For this program, print out a 4 sided figure using the capital letter X. The largest side will be 20, and the smallest side will be 1.

입력 형식

The first line consists of the number of data sets. Each data set consists of 2 integers, the length and width of the quadrilateral.

출력 형식

Print out the quadrilateral using the capital letter X, each quadrilateral separated by a blank line.

예제 입력

3
2 3
5 1
20 8

예제 출력

XX
XX
XX

XXXXX

XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX

Comments

There are no comments at the moment.