Painting rectangles P95178


Statement
 

pdf   zip

thehtml

Your task is to write a program that, given two integers a and b, prints a rectangle a × b following the format of the instances.

Input

Input consits of two numbers a and b, both of them between 1 and 20. The first one indicates the number of rows, and the second one indicates the number of columns of the rectangle that must be painted.

Output

Your program must only print a rectangle, as the format of the instances.

Public test cases
  • Input

    5 14
    

    Output

    00000000000000
    01111111111110
    01222222222210
    01111111111110
    00000000000000
    
  • Input

    4 3
    

    Output

    000
    010
    010
    000
    
  • Input

    1 1
    

    Output

    0
    
  • Input

    1 20
    

    Output

    00000000000000000000
    
  • Input

    20 20
    

    Output

    00000000000000000000
    01111111111111111110
    01222222222222222210
    01233333333333333210
    01234444444444443210
    01234555555555543210
    01234566666666543210
    01234567777776543210
    01234567888876543210
    01234567899876543210
    01234567899876543210
    01234567888876543210
    01234567777776543210
    01234566666666543210
    01234555555555543210
    01234444444444443210
    01233333333333333210
    01222222222222222210
    01111111111111111110
    00000000000000000000
    
  • Information
    Author
    Omer Giménez
    Language
    English
    Translator
    Carlos Molina
    Original language
    Spanish
    Other languages
    Spanish
    Official solutions
    C++
    User solutions
    C C++