This page is still under construction.

Parts of this page are still being built. What you see may change.

Quadrilateral

Time limit1sMemory limit256 MB

Summary
Print a solid rectangle of X letters for each given width and height, separating consecutive outputs with a blank line.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

A quadrilateral is a figure with four sides. For this problem, print a rectangle using the capital letter X. Each side length is between 1 and 20 inclusive.

Input

The first line contains the number of datasets. Each dataset is two integers: the width and the height of the rectangle.

Output

For each dataset, print the rectangle filled with X. Separate consecutive datasets with a blank line.

Examples4

  1. Example 1

    Input
    3
    2 3
    5 1
    20 8
    
    Expected output
    XX
    XX
    XX
    
    XXXXX
    
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX
    
  2. Example 2

    Input
    1
    1 1
    
    Expected output
    X
    
  3. Example 3

    Input
    1
    3 2
    
    Expected output
    XXX
    XXX
    
  4. Example 4

    Input
    2
    4 1
    2 4
    
    Expected output
    XXXX
    
    XX
    XX
    XX
    XX